bug #96, bug #1006: fix by value argument in result_of.

This commit is contained in:
Gael Guennebaud
2016-01-28 12:12:06 +01:00
parent 7802a6bb1c
commit 2bad3e78d9
5 changed files with 7 additions and 7 deletions

View File

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