bug #970: Add EIGEN_DEVICE_FUNC to RValue functions, in case Cuda supports RValue-references.

This commit is contained in:
Christoph Hertzberg
2015-02-24 21:03:28 +01:00
parent 26275b250a
commit 531fa9de77
3 changed files with 10 additions and 0 deletions

View File

@@ -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);