aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/VectorwiseOp.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-01-28 12:12:06 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-01-28 12:12:06 +0100
commit2bad3e78d9e23dec7e4ad31c4ad2bdc761b8f3b6 (patch)
tree3237f584f7819abf5ddf6104cb22879b6b831e1b /Eigen/src/Core/VectorwiseOp.h
parent7802a6bb1cc6477810dff0e83ec90af954784612 (diff)
bug #96, bug #1006: fix by value argument in result_of.
Diffstat (limited to 'Eigen/src/Core/VectorwiseOp.h')
-rwxr-xr-xEigen/src/Core/VectorwiseOp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/VectorwiseOp.h b/Eigen/src/Core/VectorwiseOp.h
index 95bcaa86f..193891189 100755
--- a/Eigen/src/Core/VectorwiseOp.h
+++ b/Eigen/src/Core/VectorwiseOp.h
@@ -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 }; };