Fix some calls to result_of on binary functors as unary ones.

This commit is contained in:
Gael Guennebaud
2015-02-19 23:30:41 +01:00
parent 0f4dd15dfc
commit 1b7e12847d
5 changed files with 5 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ EIGEN_MEMBER_FUNCTOR(prod, (Size-1)*NumTraits<Scalar>::MulCost);
template <typename BinaryOp, typename Scalar>
struct member_redux {
typedef typename result_of<
BinaryOp(Scalar)
BinaryOp(Scalar,Scalar)
>::type result_type;
template<typename _Scalar, int Size> struct Cost
{ enum { value = (Size-1) * functor_traits<BinaryOp>::Cost }; };