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> 14template <
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 {};
22template <
typename ScalarSource,
typename ScalarTarget>
23struct 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 {};