Commit eae634fe authored by Max Lyon's avatar Max Lyon
Browse files

add method to move construct vector from array

parent 96fb20fd
...@@ -169,6 +169,11 @@ class VectorT { ...@@ -169,6 +169,11 @@ class VectorT {
std::copy_n(it, DIM, values_.begin()); std::copy_n(it, DIM, values_.begin());
} }
/// construct from an array
explicit VectorT(container&& _array) {
values_ = _array;
}
/// copy & cast constructor (explicit) /// copy & cast constructor (explicit)
template<typename otherScalarType, template<typename otherScalarType,
typename = typename std::enable_if< typename = typename std::enable_if<
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment