diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index ce9e82913..665b7497a 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -239,7 +239,11 @@ template class Ref< template void construct(const Expression& expr, internal::false_type) { +#ifdef EIGEN_TEST_EVALUATORS + internal::call_assignment_no_alias(m_object,expr,internal::assign_op()); +#else m_object.lazyAssign(expr); +#endif Base::construct(m_object); }