aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/plugins
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-06-25 13:52:23 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-06-25 13:52:23 +0200
commit4056db01e79eea090e0cb3688e614d2779672d72 (patch)
tree15a6c58a51c77dfdc0e2daa0580806e70b510316 /Eigen/src/plugins
parent686689e9cfd37b45dee6fc4c04e01167c048a468 (diff)
use const Scalar& instead of Scalar for function arguments
Diffstat (limited to 'Eigen/src/plugins')
-rw-r--r--Eigen/src/plugins/ArrayCwiseUnaryOps.h2
1 files changed, 1 insertions, 1 deletions
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<std::binder2nd<FUNCTOR<Scalar> >,Derived> \
- METHOD_NAME(Scalar s) const { \
+ METHOD_NAME(const Scalar& s) const { \
return CwiseUnaryOp<std::binder2nd<FUNCTOR<Scalar> >,Derived> \
(derived(), std::bind2nd(FUNCTOR<Scalar>(), s)); \
}