rename back MayAliasBit to EvalBeforeAssigningBit

This commit is contained in:
Gael Guennebaud
2009-08-16 00:14:05 +02:00
parent f5f2b222a3
commit 65fe5f76fd
9 changed files with 21 additions and 23 deletions

View File

@@ -39,7 +39,7 @@ struct ei_traits<ProductBase<Derived,_Lhs,_Rhs> >
ColsAtCompileTime = ei_traits<Rhs>::ColsAtCompileTime,
MaxRowsAtCompileTime = ei_traits<Lhs>::MaxRowsAtCompileTime,
MaxColsAtCompileTime = ei_traits<Rhs>::MaxColsAtCompileTime,
Flags = EvalBeforeNestingBit | MayAliasBit,
Flags = EvalBeforeNestingBit | EvalBeforeAssigningBit,
CoeffReadCost = 0 // FIXME why is it needed ?
};
};
@@ -119,7 +119,7 @@ class ProductBase : public MatrixBase<Derived>
return res;
}
const Flagged<ProductBase, 0, MayAliasBit> lazy() const
const Flagged<ProductBase, 0, EvalBeforeAssigningBit> lazy() const
{
return *this;
}
@@ -228,7 +228,7 @@ Derived& MatrixBase<Derived>::lazyAssign(const ProductBase<ProductDerived, Lhs,R
template<typename Derived>
template<typename ProductDerived, typename Lhs, typename Rhs>
Derived& MatrixBase<Derived>::operator+=(const Flagged<ProductBase<ProductDerived, Lhs,Rhs>, 0,
MayAliasBit>& other)
EvalBeforeAssigningBit>& other)
{
other._expression().derived().addTo(derived()); return derived();
}
@@ -238,7 +238,7 @@ Derived& MatrixBase<Derived>::operator+=(const Flagged<ProductBase<ProductDerive
template<typename Derived>
template<typename ProductDerived, typename Lhs, typename Rhs>
Derived& MatrixBase<Derived>::operator-=(const Flagged<ProductBase<ProductDerived, Lhs,Rhs>, 0,
MayAliasBit>& other)
EvalBeforeAssigningBit>& other)
{
other._expression().derived().subTo(derived()); return derived();
}