diff options
author | 2010-03-30 14:51:47 -0400 | |
---|---|---|
committer | 2010-03-30 14:51:47 -0400 | |
commit | 338ec0390fc89d9f202d2eb2a41725b7fc738a0a (patch) | |
tree | 6f10e69ed4f9c6ec466170584e1cfab1084beace /Eigen/src/Core/Functors.h | |
parent | 16e416b8d745b1fc64111581fec431d843591274 (diff) |
let the cast functor use the new ei_cast()
Diffstat (limited to 'Eigen/src/Core/Functors.h')
-rw-r--r-- | Eigen/src/Core/Functors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Functors.h b/Eigen/src/Core/Functors.h index c2b317cc0..d02633cb8 100644 --- a/Eigen/src/Core/Functors.h +++ b/Eigen/src/Core/Functors.h @@ -274,7 +274,7 @@ template<typename Scalar, typename NewType> struct ei_scalar_cast_op { EIGEN_EMPTY_STRUCT_CTOR(ei_scalar_cast_op) typedef NewType result_type; - EIGEN_STRONG_INLINE const NewType operator() (const Scalar& a) const { return static_cast<NewType>(a); } + EIGEN_STRONG_INLINE const NewType operator() (const Scalar& a) const { return ei_cast<Scalar, NewType>(a); } }; template<typename Scalar, typename NewType> struct ei_functor_traits<ei_scalar_cast_op<Scalar,NewType> > |