From 531fa9de77764831a6c1eae2ea7c9b02851fe1e6 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Tue, 24 Feb 2015 21:03:28 +0100 Subject: bug #970: Add EIGEN_DEVICE_FUNC to RValue functions, in case Cuda supports RValue-references. --- Eigen/src/Core/Array.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Eigen/src/Core/Array.h') 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); -- cgit v1.2.3