fix missing const qualifier in cwiseEqual

This commit is contained in:
Gael Guennebaud 2011-01-24 18:49:18 +01:00
parent bd12ac4ffc
commit 7dd4aaba9f

View File

@ -77,6 +77,6 @@ cwiseInverse() const { return derived(); }
inline const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >, const Derived> inline const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >, const Derived>
cwiseEqual(const Scalar& s) const cwiseEqual(const Scalar& s) const
{ {
return CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >,Derived> return CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >,const Derived>
(derived(), std::bind1st(std::equal_to<Scalar>(), s)); (derived(), std::bind1st(std::equal_to<Scalar>(), s));
} }