From eae634fe94decd21dbc91cdebd5f8cfb3a17d2ad Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Wed, 6 Nov 2019 14:16:25 +0100 Subject: [PATCH] add method to move construct vector from array --- src/OpenMesh/Core/Geometry/Vector11T.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OpenMesh/Core/Geometry/Vector11T.hh b/src/OpenMesh/Core/Geometry/Vector11T.hh index 6c78777e..e05a843b 100644 --- a/src/OpenMesh/Core/Geometry/Vector11T.hh +++ b/src/OpenMesh/Core/Geometry/Vector11T.hh @@ -169,6 +169,11 @@ class VectorT { std::copy_n(it, DIM, values_.begin()); } + /// construct from an array + explicit VectorT(container&& _array) { + values_ = _array; + } + /// copy & cast constructor (explicit) template