5 #ifndef __eigenpy_scalar_conversion_hpp__
6 #define __eigenpy_scalar_conversion_hpp__
8 #include "eigenpy/config.hpp"
9 #include <boost/numeric/conversion/conversion_traits.hpp>
14 template <
typename Source,
typename Target>
16 :
public boost::mpl::if_c<std::is_same<Source, Target>::value,
18 typename boost::numeric::conversion_traits<
19 Source, Target>::subranged>::type {};
22 template <
typename ScalarSource,
typename ScalarTarget>
23 struct FromTypeToType<std::complex<ScalarSource>, std::complex<ScalarTarget> >
24 :
public boost::mpl::if_c<
25 std::is_same<ScalarSource, ScalarTarget>::value, std::true_type,
26 typename boost::numeric::conversion_traits<
27 ScalarSource, ScalarTarget>::subranged>::type {};
31 #endif // __eigenpy_scalar_conversion_hpp__