From 4056db01e79eea090e0cb3688e614d2779672d72 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 25 Jun 2010 13:52:23 +0200 Subject: [PATCH] use const Scalar& instead of Scalar for function arguments --- Eigen/src/plugins/ArrayCwiseUnaryOps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/plugins/ArrayCwiseUnaryOps.h b/Eigen/src/plugins/ArrayCwiseUnaryOps.h index fc54005f7..9695bf921 100644 --- a/Eigen/src/plugins/ArrayCwiseUnaryOps.h +++ b/Eigen/src/plugins/ArrayCwiseUnaryOps.h @@ -149,7 +149,7 @@ cube() const #define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(METHOD_NAME,FUNCTOR) \ inline const CwiseUnaryOp >,Derived> \ - METHOD_NAME(Scalar s) const { \ + METHOD_NAME(const Scalar& s) const { \ return CwiseUnaryOp >,Derived> \ (derived(), std::bind2nd(FUNCTOR(), s)); \ }