123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef BOOST_NUMERIC_CONVERSION_DETAIL_INT_FLOAT_MIXTURE_FLC_12NOV2002_HPP
- #define BOOST_NUMERIC_CONVERSION_DETAIL_INT_FLOAT_MIXTURE_FLC_12NOV2002_HPP
- #include "boost/config.hpp"
- #include "boost/limits.hpp"
- #include "boost/numeric/conversion/int_float_mixture_enum.hpp"
- #include "boost/numeric/conversion/detail/meta.hpp"
- #include "boost/type_traits/integral_constant.hpp"
- namespace boost { namespace numeric { namespace convdetail
- {
-
- typedef boost::integral_constant<int_float_mixture_enum, integral_to_integral> int2int_c ;
- typedef boost::integral_constant<int_float_mixture_enum, integral_to_float> int2float_c ;
- typedef boost::integral_constant<int_float_mixture_enum, float_to_integral> float2int_c ;
- typedef boost::integral_constant<int_float_mixture_enum, float_to_float> float2float_c ;
-
-
-
-
-
-
- template<class T,class S>
- struct get_int_float_mixture
- {
- typedef mpl::bool_< ::std::numeric_limits<S>::is_integer > S_int ;
- typedef mpl::bool_< ::std::numeric_limits<T>::is_integer > T_int ;
- typedef typename
- for_both<S_int, T_int, int2int_c, int2float_c, float2int_c, float2float_c>::type
- type ;
- } ;
-
-
-
-
-
-
-
-
-
- template<class IntFloatMixture, class Int2Int, class Int2Float, class Float2Int, class Float2Float>
- struct for_int_float_mixture
- {
- typedef typename
- ct_switch4<IntFloatMixture
- ,int2int_c, int2float_c, float2int_c
- ,Int2Int , Int2Float , Float2Int , Float2Float
- >::type
- type ;
- } ;
- } } }
- #endif
|