diff options
Diffstat (limited to 'Eigen/src/Core/Array.h')
-rw-r--r-- | Eigen/src/Core/Array.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/Array.h b/Eigen/src/Core/Array.h index 337086615..9a1f30bc8 100644 --- a/Eigen/src/Core/Array.h +++ b/Eigen/src/Core/Array.h @@ -145,6 +145,7 @@ class Array #endif #ifdef EIGEN_HAVE_RVALUE_REFERENCES + EIGEN_DEVICE_FUNC Array(Array&& other) : Base(std::move(other)) { @@ -152,6 +153,7 @@ class Array if (RowsAtCompileTime!=Dynamic && ColsAtCompileTime!=Dynamic) Base::_set_noalias(other); } + EIGEN_DEVICE_FUNC Array& operator=(Array&& other) { other.swap(*this); |