mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-07 13:41:54 +08:00
let the cast functor use the new ei_cast()
This commit is contained in:
parent
16e416b8d7
commit
338ec0390f
@ -274,7 +274,7 @@ template<typename Scalar, typename NewType>
|
|||||||
struct ei_scalar_cast_op {
|
struct ei_scalar_cast_op {
|
||||||
EIGEN_EMPTY_STRUCT_CTOR(ei_scalar_cast_op)
|
EIGEN_EMPTY_STRUCT_CTOR(ei_scalar_cast_op)
|
||||||
typedef NewType result_type;
|
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>
|
template<typename Scalar, typename NewType>
|
||||||
struct ei_functor_traits<ei_scalar_cast_op<Scalar,NewType> >
|
struct ei_functor_traits<ei_scalar_cast_op<Scalar,NewType> >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user