mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix lazy evaluation in Ref
This commit is contained in:
@@ -239,7 +239,11 @@ template<typename TPlainObjectType, int Options, typename StrideType> class Ref<
|
||||
template<typename Expression>
|
||||
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);
|
||||
#endif
|
||||
Base::construct(m_object);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user