/usr/include/boost/multiprecision/traits
NameSizeModeActions
explicit_conversion.hpp35280644editdlrm
extract_exponent_type.hpp7370644editdlrm
is_backend.hpp22680644editdlrm
is_byte_container.hpp14390644editdlrm
is_restricted_conversion.hpp18600644editdlrm
is_variable_precision.hpp8770644editdlrm
Edit: /usr/include/boost/multiprecision/traits/is_restricted_conversion.hpp (1860B)
/////////////////////////////////////////////////////////////////////////////// // Copyright Vicente J. Botet Escriba 2009-2011 // Copyright 2012 John Maddock. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MP_RESTRICTED_CONVERSION_HPP #define BOOST_MP_RESTRICTED_CONVERSION_HPP #include #include #include namespace boost { namespace multiprecision { namespace detail { template struct is_lossy_conversion { typedef typename mpl::if_c< ((number_category::value == number_kind_floating_point) && (number_category::value == number_kind_integer)) /* || ((number_category::value == number_kind_floating_point) && (number_category::value == number_kind_rational))*/ || ((number_category::value == number_kind_rational) && (number_category::value == number_kind_integer)) || ((number_category::value == number_kind_fixed_point) && (number_category::value == number_kind_integer)) || (number_category::value == number_kind_unknown) || (number_category::value == number_kind_unknown), mpl::true_, mpl::false_>::type type; static const bool value = type::value; }; template struct is_restricted_conversion { typedef typename mpl::if_c< ((is_explicitly_convertible::value && !is_convertible::value) || is_lossy_conversion::value), mpl::true_, mpl::false_>::type type; static const bool value = type::value; }; }}} // namespace boost::multiprecision::detail #endif // BOOST_MP_RESTRICTED_CONVERSION_HPP