diff options
author | 2013-08-13 14:54:09 +0200 | |
---|---|---|
committer | 2013-08-13 14:54:09 +0200 | |
commit | 1d89554f1b6bb0f6f9e16282cf0b3cd6fdccfb65 (patch) | |
tree | f8ef3f9ff4fff6306ac7e09810c46bb18dbf3935 /Eigen | |
parent | ace2ed7b87e9568993bd04ff6615b83e44c86369 (diff) |
Deprecate boolean sum operator (bug #426)
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/Functors.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Core/Functors.h b/Eigen/src/Core/Functors.h index 04fb21732..080338617 100644 --- a/Eigen/src/Core/Functors.h +++ b/Eigen/src/Core/Functors.h @@ -39,6 +39,13 @@ struct functor_traits<scalar_sum_op<Scalar> > { }; }; + +template<> struct scalar_sum_op<bool> : scalar_sum_op<int> { + EIGEN_DEPRECATED + scalar_sum_op() {} +}; + + /** \internal * \brief Template functor to compute the product of two scalars * |