[Boost-bugs] [Boost C++ Libraries] #6169: integer.hpp fails to produce compiler error for large number of bits

Subject: [Boost-bugs] [Boost C++ Libraries] #6169: integer.hpp fails to produce compiler error for large number of bits
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-23 16:47:30


#6169: integer.hpp fails to produce compiler error for large number of bits
-------------------------------+--------------------------------------------
 Reporter: cmoore@… | Owner: dlwalker
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: integer
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 According to the documentation, when using the uint_t<Bits> template, a
 compile time error should be produced when asking for more bits that a
 native type can provide. Actual behavior compiles successfully.

 {{{
 std::numeric_limits<boost::uint_t<65>::least>::digits
 //65 produces 64 instead of a compile error.

 std::numeric_limits<boost::uint_t<66>::least>::digits
 //66 and larger numbers produce 7 instead of a compile error.
 }}}
 compiler: apple gcc-4.2 (xcode 4.2), macports gcc-4.6

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6169>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC