aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/plugins/ArrayCwiseUnaryOps.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2015-05-07 17:28:40 +0200
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2015-05-07 17:28:40 +0200
commit494fa991c36dffdbd02a0d97e48e0b297efa9dc3 (patch)
tree5a83eee35aadae017542a4e01dbc40fcca1935f9 /Eigen/src/plugins/ArrayCwiseUnaryOps.h
parent4a936974a5b895f61d0f80a61b27ea642037cb11 (diff)
bug #872: Avoid deprecated binder1st/binder2nd usage by providing custom functors for comparison operators
Diffstat (limited to 'Eigen/src/plugins/ArrayCwiseUnaryOps.h')
-rw-r--r--Eigen/src/plugins/ArrayCwiseUnaryOps.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/Eigen/src/plugins/ArrayCwiseUnaryOps.h b/Eigen/src/plugins/ArrayCwiseUnaryOps.h
index f6f526d2b..3d4693fd1 100644
--- a/Eigen/src/plugins/ArrayCwiseUnaryOps.h
+++ b/Eigen/src/plugins/ArrayCwiseUnaryOps.h
@@ -246,24 +246,5 @@ cube() const
return CubeReturnType(derived());
}
-#define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(METHOD_NAME,FUNCTOR) \
- EIGEN_DEVICE_FUNC \
- inline const CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >, const Derived> \
- METHOD_NAME(const Scalar& s) const { \
- return CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >, const Derived> \
- (derived(), std::bind2nd(FUNCTOR<Scalar>(), s)); \
- } \
- friend inline const CwiseUnaryOp<std::binder1st<FUNCTOR<Scalar> >, const Derived> \
- METHOD_NAME(const Scalar& s, const Derived& d) { \
- return CwiseUnaryOp<std::binder1st<FUNCTOR<Scalar> >, const Derived> \
- (d, std::bind1st(FUNCTOR<Scalar>(), s)); \
- }
-
-EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator==, std::equal_to)
-EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator!=, std::not_equal_to)
-EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator<, std::less)
-EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator<=, std::less_equal)
-EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator>, std::greater)
-EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(operator>=, std::greater_equal)