Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76808 - in trunk/boost/numeric/conversion/detail: . preprocessed
From: blkohn_at_[hidden]
Date: 2012-01-31 09:27:11


Author: brandon.kohn
Date: 2012-01-31 09:27:10 EST (Tue, 31 Jan 2012)
New Revision: 76808
URL: http://svn.boost.org/trac/boost/changeset/76808

Log:
Changed long long and unsigned long long to use the boost::(u)long_long_type typedefs in the numeric_cast_traits base specializations.
Text files modified:
   trunk/boost/numeric/conversion/detail/numeric_cast_traits.hpp | 4
   trunk/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp | 120 ++++++++++++++++++++--------------------
   2 files changed, 62 insertions(+), 62 deletions(-)

Modified: trunk/boost/numeric/conversion/detail/numeric_cast_traits.hpp
==============================================================================
--- trunk/boost/numeric/conversion/detail/numeric_cast_traits.hpp (original)
+++ trunk/boost/numeric/conversion/detail/numeric_cast_traits.hpp 2012-01-31 09:27:10 EST (Tue, 31 Jan 2012)
@@ -90,8 +90,8 @@
 
 namespace boost { namespace numeric {
 
- #define BOOST_NUMERIC_CONVERSION_SEQ_A() BOOST_NUMERIC_CONVERSION_BASE_BUILTIN_TYPES()(long long)(unsigned long long)
- #define BOOST_NUMERIC_CONVERSION_SEQ_B() (long long)(unsigned long long)
+ #define BOOST_NUMERIC_CONVERSION_SEQ_A() BOOST_NUMERIC_CONVERSION_BASE_BUILTIN_TYPES()(boost::long_long_type)(boost::ulong_long_type)
+ #define BOOST_NUMERIC_CONVERSION_SEQ_B() (boost::long_long_type)(boost::ulong_long_type)
     
     #define BOOST_PP_ITERATION_PARAMS_1 (3, (0, BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(BOOST_NUMERIC_CONVERSION_SEQ_A())), <boost/numeric/conversion/detail/numeric_cast_traits.hpp>))
     #include BOOST_PP_ITERATE()

Modified: trunk/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp
==============================================================================
--- trunk/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp (original)
+++ trunk/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp 2012-01-31 09:27:10 EST (Tue, 31 Jan 2012)
@@ -13,335 +13,335 @@
     struct numeric_cast_traits
         <
             char
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             char
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             signed char
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             signed char
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             unsigned char
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             unsigned char
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             short
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             short
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             unsigned short
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             unsigned short
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             int
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             int
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             unsigned int
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             unsigned int
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             long
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             long
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             unsigned long
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             unsigned long
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             float
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             float
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             double
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             double
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             long double
- , long long
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
             long double
- , unsigned long long
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
- long long
- , long long
+ boost::long_long_type
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
- long long
- , unsigned long long
+ boost::long_long_type
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
- unsigned long long
- , long long
+ boost::ulong_long_type
+ , boost::long_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<long long> rounding_policy;
+ typedef Trunc<boost::long_long_type> rounding_policy;
     };
     
     template <>
     struct numeric_cast_traits
         <
- unsigned long long
- , unsigned long long
+ boost::ulong_long_type
+ , boost::ulong_long_type
>
     {
         typedef def_overflow_handler overflow_policy;
         typedef UseInternalRangeChecker range_checking_policy;
- typedef Trunc<unsigned long long> rounding_policy;
+ typedef Trunc<boost::ulong_long_type> rounding_policy;
     };
 }}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk