5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 #ifndef BOOST_NUMERIC_CAST_TRAITS_HPP
10 #define BOOST_NUMERIC_CAST_TRAITS_HPP
12 #include <boost/numeric/conversion/converter_policies.hpp>
14 namespace boost { namespace numeric {
16 template <typename Target, typename Source, typename EnableIf = void>
17 struct numeric_cast_traits
19 typedef def_overflow_handler overflow_policy;
20 typedef UseInternalRangeChecker range_checking_policy;
21 typedef Trunc<Source> rounding_policy;
24 }}//namespace boost::numeric;
26 #if !defined( BOOST_NUMERIC_CONVERSION_RELAX_BUILT_IN_CAST_TRAITS )
27 #include <boost/cstdint.hpp>
28 #include <boost/numeric/conversion/detail/numeric_cast_traits.hpp>
29 #endif//!defined BOOST_NUMERIC_CONVERSION_RELAX_BUILT_IN_CAST_TRAITS
31 #endif//BOOST_NUMERIC_CAST_TRAITS_HPP