Fix logic in cstdint to prefer smaller integers when possible.

Improve PP-logic in integer-traits.
Suppress some compiler warnings.

[SVN r65721]
This commit is contained in:
John Maddock
2010-10-02 12:14:04 +00:00
parent 245c28d187
commit 614515a77b
4 changed files with 126 additions and 31 deletions

View File

@ -136,22 +136,6 @@ template < std::size_t Bits >
template < >
struct low_bits_mask_t< ::std::numeric_limits<unsigned char>::digits >;
#if USHRT_MAX > UCHAR_MAX
template < >
struct low_bits_mask_t< ::std::numeric_limits<unsigned short>::digits >;
#endif
#if UINT_MAX > USHRT_MAX
template < >
struct low_bits_mask_t< ::std::numeric_limits<unsigned int>::digits >;
#endif
#if ULONG_MAX > UINT_MAX
template < >
struct low_bits_mask_t< ::std::numeric_limits<unsigned long>::digits >;
#endif
// From <boost/integer/static_log2.hpp> ------------------------------------//
template <static_log2_argument_type Value >