diff -dur boost_1_48_0_clean/boost/integer.hpp boost_1_48_0/boost/integer.hpp
|
old
|
new
|
|
| 54 | 54 | |
| 55 | 55 | // specializatons: 1=long, 2=int, 3=short, 4=signed char, |
| 56 | 56 | // 6=unsigned long, 7=unsigned int, 8=unsigned short, 9=unsigned char |
| 57 | | // no specializations for 0 and 5: requests for a type > long are in error |
| | 57 | // no specializations for 0 and 6: requests for a type > long are in error |
| 58 | 58 | #ifdef BOOST_HAS_LONG_LONG |
| 59 | 59 | template<> struct int_least_helper<1> { typedef boost::long_long_type least; }; |
| 60 | 60 | #elif defined(BOOST_HAS_MS_INT64) |
| … |
… |
|
| 65 | 65 | template<> struct int_least_helper<4> { typedef short least; }; |
| 66 | 66 | template<> struct int_least_helper<5> { typedef signed char least; }; |
| 67 | 67 | #ifdef BOOST_HAS_LONG_LONG |
| 68 | | template<> struct int_least_helper<6> { typedef boost::ulong_long_type least; }; |
| | 68 | template<> struct int_least_helper<7> { typedef boost::ulong_long_type least; }; |
| 69 | 69 | #elif defined(BOOST_HAS_MS_INT64) |
| 70 | | template<> struct int_least_helper<6> { typedef unsigned __int64 least; }; |
| | 70 | template<> struct int_least_helper<7> { typedef unsigned __int64 least; }; |
| 71 | 71 | #endif |
| 72 | | template<> struct int_least_helper<7> { typedef unsigned long least; }; |
| 73 | | template<> struct int_least_helper<8> { typedef unsigned int least; }; |
| 74 | | template<> struct int_least_helper<9> { typedef unsigned short least; }; |
| 75 | | template<> struct int_least_helper<10> { typedef unsigned char least; }; |
| | 72 | template<> struct int_least_helper<8> { typedef unsigned long least; }; |
| | 73 | template<> struct int_least_helper<9> { typedef unsigned int least; }; |
| | 74 | template<> struct int_least_helper<10> { typedef unsigned short least; }; |
| | 75 | template<> struct int_least_helper<11> { typedef unsigned char least; }; |
| 76 | 76 | |
| 77 | 77 | template <int Bits> |
| 78 | 78 | struct exact_signed_base_helper{}; |
| … |
… |
|
| 133 | 133 | #if (defined(__BORLANDC__) || defined(__CODEGEAR__)) && defined(BOOST_NO_INTEGRAL_INT64_T) |
| 134 | 134 | // It's really not clear why this workaround should be needed... shrug I guess! JM |
| 135 | 135 | BOOST_STATIC_CONSTANT(int, s = |
| 136 | | 6 + |
| | 136 | 7 + |
| 137 | 137 | (Bits <= ::std::numeric_limits<unsigned long>::digits) + |
| 138 | 138 | (Bits <= ::std::numeric_limits<unsigned int>::digits) + |
| 139 | 139 | (Bits <= ::std::numeric_limits<unsigned short>::digits) + |
| … |
… |
|
| 142 | 142 | #else |
| 143 | 143 | typedef typename detail::int_least_helper |
| 144 | 144 | < |
| 145 | | 5 + |
| | 145 | 6 + |
| 146 | 146 | #ifdef BOOST_HAS_LONG_LONG |
| 147 | | (Bits-1 <= (int)(sizeof(boost::long_long_type) * CHAR_BIT)) + |
| | 147 | (Bits <= ::std::numeric_limits<boost::ulong_long_type>::digits) + |
| 148 | 148 | #else |
| 149 | 149 | 1 + |
| 150 | 150 | #endif |
| … |
… |
|
| 217 | 217 | // It's really not clear why this workaround should be needed... shrug I guess! JM |
| 218 | 218 | #if defined(BOOST_NO_INTEGRAL_INT64_T) |
| 219 | 219 | BOOST_STATIC_CONSTANT(unsigned, which = |
| 220 | | 6 + |
| | 220 | 7 + |
| 221 | 221 | (MaxValue <= ::boost::integer_traits<unsigned long>::const_max) + |
| 222 | 222 | (MaxValue <= ::boost::integer_traits<unsigned int>::const_max) + |
| 223 | 223 | (MaxValue <= ::boost::integer_traits<unsigned short>::const_max) + |
| … |
… |
|
| 225 | 225 | typedef typename detail::int_least_helper< ::boost::uint_value_t<MaxValue>::which>::least least; |
| 226 | 226 | #else // BOOST_NO_INTEGRAL_INT64_T |
| 227 | 227 | BOOST_STATIC_CONSTANT(unsigned, which = |
| 228 | | 5 + |
| | 228 | 6 + |
| 229 | 229 | (MaxValue <= ::boost::integer_traits<boost::ulong_long_type>::const_max) + |
| 230 | 230 | (MaxValue <= ::boost::integer_traits<unsigned long>::const_max) + |
| 231 | 231 | (MaxValue <= ::boost::integer_traits<unsigned int>::const_max) + |
| … |
… |
|
| 236 | 236 | #else |
| 237 | 237 | typedef typename detail::int_least_helper |
| 238 | 238 | < |
| 239 | | 5 + |
| | 239 | 6 + |
| 240 | 240 | #if !defined(BOOST_NO_INTEGRAL_INT64_T) && defined(BOOST_HAS_LONG_LONG) |
| 241 | 241 | (MaxValue <= ::boost::integer_traits<boost::ulong_long_type>::const_max) + |
| 242 | 242 | #else |