From 8f249e8b5459ed79914db7847cebd3a40458bd8b Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 30 Apr 2010 14:28:35 -0400 Subject: [PATCH] fix compilation: const (T&) != const T& , use ei_makeconst --- Eigen/src/Core/MathFunctions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 74dda7139..c24665a4b 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -161,7 +161,7 @@ struct ei_real_ref_retval }; template -inline const EIGEN_MATHFUNC_RETVAL(real_ref, Scalar) ei_real_ref(const Scalar& x) +inline typename ei_makeconst< EIGEN_MATHFUNC_RETVAL(real_ref, Scalar) >::type ei_real_ref(const Scalar& x) { return ei_real_ref_impl::run(x); } @@ -213,7 +213,7 @@ struct ei_imag_ref_retval }; template -inline const EIGEN_MATHFUNC_RETVAL(imag_ref, Scalar) ei_imag_ref(const Scalar& x) +inline typename ei_makeconst< EIGEN_MATHFUNC_RETVAL(imag_ref, Scalar) >::type ei_imag_ref(const Scalar& x) { return ei_imag_ref_impl::run(x); }