From f4c2665e86c2ebf77cf769d5e3faa80304d817ed Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Tue, 24 Aug 2021 19:14:37 +0300 Subject: [PATCH] Update Vector.hpp --- module/Library/Utils/Vector.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/module/Library/Utils/Vector.hpp b/module/Library/Utils/Vector.hpp index 6c5a06a2..6c28da9f 100644 --- a/module/Library/Utils/Vector.hpp +++ b/module/Library/Utils/Vector.hpp @@ -164,6 +164,22 @@ template < class T > struct SqVector { } + /* -------------------------------------------------------------------------------------------- + * Copy constructor from container. + */ + explicit SqVector(const Container & v) + : mC(Poco::makeShared< Container >(v)) + { + } + + /* -------------------------------------------------------------------------------------------- + * Move constructor from container. + */ + explicit SqVector(Container && v) noexcept + : mC(Poco::makeShared< Container >(std::move(v))) + { + } + /* -------------------------------------------------------------------------------------------- * Move constructor. */