123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef BOOST_NUMERIC_CONVERSION_DETAIL_SIGN_MIXTURE_FLC_12NOV2002_HPP
- #define BOOST_NUMERIC_CONVERSION_DETAIL_SIGN_MIXTURE_FLC_12NOV2002_HPP
- #include "boost/config.hpp"
- #include "boost/limits.hpp"
- #include "boost/numeric/conversion/sign_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<sign_mixture_enum, unsigned_to_unsigned> unsig2unsig_c ;
- typedef boost::integral_constant<sign_mixture_enum, signed_to_signed> sig2sig_c ;
- typedef boost::integral_constant<sign_mixture_enum, signed_to_unsigned> sig2unsig_c ;
- typedef boost::integral_constant<sign_mixture_enum, unsigned_to_signed> unsig2sig_c ;
-
-
-
-
-
-
- template<class T,class S>
- struct get_sign_mixture
- {
- typedef mpl::bool_< ::std::numeric_limits<S>::is_signed > S_signed ;
- typedef mpl::bool_< ::std::numeric_limits<T>::is_signed > T_signed ;
- typedef typename
- for_both<S_signed, T_signed, sig2sig_c, sig2unsig_c, unsig2sig_c, unsig2unsig_c>::type
- type ;
- } ;
-
-
-
-
-
-
-
-
-
- template<class SignMixture, class Sig2Sig, class Sig2Unsig, class Unsig2Sig, class Unsig2Unsig>
- struct for_sign_mixture
- {
- typedef typename
- ct_switch4<SignMixture
- , sig2sig_c, sig2unsig_c, unsig2sig_c
- , Sig2Sig , Sig2Unsig , Unsig2Sig , Unsig2Unsig
- >::type
- type ;
- } ;
- } } }
- #endif
|