File indexing completed on 2025-01-30 09:49:05
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_NUMERIC_CAST_TRAITS_HPP
0010 #define BOOST_NUMERIC_CAST_TRAITS_HPP
0011
0012 #include <boost/numeric/conversion/converter_policies.hpp>
0013
0014 namespace boost { namespace numeric {
0015
0016 template <typename Target, typename Source, typename EnableIf = void>
0017 struct numeric_cast_traits
0018 {
0019 typedef def_overflow_handler overflow_policy;
0020 typedef UseInternalRangeChecker range_checking_policy;
0021 typedef Trunc<Source> rounding_policy;
0022 };
0023
0024 }}
0025
0026 #if !defined( BOOST_NUMERIC_CONVERSION_RELAX_BUILT_IN_CAST_TRAITS )
0027 #include <boost/cstdint.hpp>
0028 #include <boost/numeric/conversion/detail/numeric_cast_traits.hpp>
0029 #endif
0030
0031 #endif