Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:49:05

0001 //
0002 //! Copyright (c) 2011
0003 //! Brandon Kohn
0004 //
0005 //  Distributed under the Boost Software License, Version 1.0. (See
0006 //  accompanying file LICENSE_1_0.txt or copy at
0007 //  http://www.boost.org/LICENSE_1_0.txt)
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 }}//namespace boost::numeric;
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//!defined BOOST_NUMERIC_CONVERSION_RELAX_BUILT_IN_CAST_TRAITS
0030 
0031 #endif//BOOST_NUMERIC_CAST_TRAITS_HPP