aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/DenseBase.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-12-02 15:07:45 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-12-02 15:07:45 +0100
commit8af1ba534669a223ca69136046690eb6d49ff619 (patch)
treec5d71b1b4a6e7b667f7ce2503692f16d0bfa1eaa /Eigen/src/Core/DenseBase.h
parentc6f73370327e2e91a45ac13e7bbb6c7567179e49 (diff)
Make swap unit test work with evaluators
Diffstat (limited to 'Eigen/src/Core/DenseBase.h')
-rw-r--r--Eigen/src/Core/DenseBase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h
index 50a63c85c..9bbfacbcf 100644
--- a/Eigen/src/Core/DenseBase.h
+++ b/Eigen/src/Core/DenseBase.h
@@ -397,7 +397,7 @@ template<typename Derived> class DenseBase
void swap(const DenseBase<OtherDerived>& other,
int = OtherDerived::ThisConstantIsPrivateInPlainObjectBase)
{
- swap_using_evaluator(derived(), other.derived());
+ call_assignment(derived(), other.const_cast_derived(), internal::swap_assign_op<Scalar>());
}
/** swaps *this with the matrix or array \a other.
@@ -407,7 +407,7 @@ template<typename Derived> class DenseBase
EIGEN_DEVICE_FUNC
void swap(PlainObjectBase<OtherDerived>& other)
{
- swap_using_evaluator(derived(), other.derived());
+ call_assignment(derived(), other.derived(), internal::swap_assign_op<Scalar>());
}
#else // EIGEN_TEST_EVALUATORS
/** swaps *this with the expression \a other.