aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Array.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2015-02-24 21:03:28 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2015-02-24 21:03:28 +0100
commit531fa9de77764831a6c1eae2ea7c9b02851fe1e6 (patch)
tree923c2d126bd222a53ba5fff7087294d826efe523 /Eigen/src/Core/Array.h
parent26275b250a271b27132e41486de5bb5b18e8365a (diff)
bug #970: Add EIGEN_DEVICE_FUNC to RValue functions, in case Cuda supports RValue-references.
Diffstat (limited to 'Eigen/src/Core/Array.h')
-rw-r--r--Eigen/src/Core/Array.h2
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);