Add missing support for x.noalias() = ReturnByValue<...>

This commit is contained in:
Gael Guennebaud 2013-05-13 10:39:50 +02:00
parent fcdbfabf7a
commit 43bb942365

View File

@ -80,6 +80,10 @@ class NoAlias
template<typename Lhs, typename Rhs, int NestingFlags>
EIGEN_STRONG_INLINE ExpressionType& operator-=(const CoeffBasedProduct<Lhs,Rhs,NestingFlags>& other)
{ return m_expression.derived() -= CoeffBasedProduct<Lhs,Rhs,NestByRefBit>(other.lhs(), other.rhs()); }
template<typename OtherDerived>
ExpressionType& operator=(const ReturnByValue<OtherDerived>& func)
{ return m_expression = func; }
#endif
ExpressionType& expression() const