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. */