Fix lazy evaluation in Ref

This commit is contained in:
Gael Guennebaud 2014-02-19 13:17:41 +01:00
parent ccc41128fb
commit 3a735a6cf1

View File

@ -239,7 +239,11 @@ template<typename TPlainObjectType, int Options, typename StrideType> class Ref<
template<typename Expression> template<typename Expression>
void construct(const Expression& expr, internal::false_type) void construct(const Expression& expr, internal::false_type)
{ {
#ifdef EIGEN_TEST_EVALUATORS
internal::call_assignment_no_alias(m_object,expr,internal::assign_op<Scalar>());
#else
m_object.lazyAssign(expr); m_object.lazyAssign(expr);
#endif
Base::construct(m_object); Base::construct(m_object);
} }