annotate DEPENDENCIES/generic/include/boost/numeric/conversion/numeric_cast_traits.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 //
Chris@16 2 //! Copyright (c) 2011
Chris@16 3 //! Brandon Kohn
Chris@16 4 //
Chris@16 5 // Distributed under the Boost Software License, Version 1.0. (See
Chris@16 6 // accompanying file LICENSE_1_0.txt or copy at
Chris@16 7 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8 //
Chris@16 9 #ifndef BOOST_NUMERIC_CAST_TRAITS_HPP
Chris@16 10 #define BOOST_NUMERIC_CAST_TRAITS_HPP
Chris@16 11
Chris@16 12 #include <boost/numeric/conversion/converter_policies.hpp>
Chris@16 13
Chris@16 14 namespace boost { namespace numeric {
Chris@16 15
Chris@16 16 template <typename Target, typename Source, typename EnableIf = void>
Chris@16 17 struct numeric_cast_traits
Chris@16 18 {
Chris@16 19 typedef def_overflow_handler overflow_policy;
Chris@16 20 typedef UseInternalRangeChecker range_checking_policy;
Chris@16 21 typedef Trunc<Source> rounding_policy;
Chris@16 22 };
Chris@16 23
Chris@16 24 }}//namespace boost::numeric;
Chris@16 25
Chris@16 26 #if !defined( BOOST_NUMERIC_CONVERSION_RELAX_BUILT_IN_CAST_TRAITS )
Chris@16 27 #include <boost/cstdint.hpp>
Chris@16 28 #include <boost/numeric/conversion/detail/numeric_cast_traits.hpp>
Chris@16 29 #endif//!defined BOOST_NUMERIC_CONVERSION_RELAX_BUILT_IN_CAST_TRAITS
Chris@16 30
Chris@16 31 #endif//BOOST_NUMERIC_CAST_TRAITS_HPP