diff --git a/Eigen/src/plugins/MatrixCwiseUnaryOps.h b/Eigen/src/plugins/MatrixCwiseUnaryOps.h index f95c0fe29..a3d9a0e14 100644 --- a/Eigen/src/plugins/MatrixCwiseUnaryOps.h +++ b/Eigen/src/plugins/MatrixCwiseUnaryOps.h @@ -77,6 +77,6 @@ cwiseInverse() const { return derived(); } inline const CwiseUnaryOp >, const Derived> cwiseEqual(const Scalar& s) const { - return CwiseUnaryOp >,Derived> + return CwiseUnaryOp >,const Derived> (derived(), std::bind1st(std::equal_to(), s)); }