diff options
author | 2010-04-30 14:28:35 -0400 | |
---|---|---|
committer | 2010-04-30 14:28:35 -0400 | |
commit | 8f249e8b5459ed79914db7847cebd3a40458bd8b (patch) | |
tree | 2346456ad330ef479cc184d97718e5603a40ccaa /Eigen | |
parent | cf4f90cceacecee87be359b94595662359d027fb (diff) |
fix compilation: const (T&) != const T& , use ei_makeconst
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 4 |
1 files 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<typename Scalar> -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<Scalar>::run(x); } @@ -213,7 +213,7 @@ struct ei_imag_ref_retval }; template<typename Scalar> -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<Scalar>::run(x); } |