Boost C++ Libraries: Ticket #6169: integer.hpp fails to produce compiler error for large number of bits https://svn.boost.org/trac10/ticket/6169 <p> According to the documentation, when using the uint_t&lt;Bits&gt; template, a compile time error should be produced when asking for more bits that a native type can provide. Actual behavior compiles successfully. </p> <pre class="wiki">std::numeric_limits&lt;boost::uint_t&lt;65&gt;::least&gt;::digits //65 produces 64 instead of a compile error. std::numeric_limits&lt;boost::uint_t&lt;66&gt;::least&gt;::digits //66 and larger numbers produce 7 instead of a compile error. </pre><p> compiler: apple gcc-4.2 (xcode 4.2), macports gcc-4.6 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6169 Trac 1.4.3 Chris Moore <cmoore@…> Wed, 23 Nov 2011 16:48:30 GMT attachment set https://svn.boost.org/trac10/ticket/6169 https://svn.boost.org/trac10/ticket/6169 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test-example.cpp</span> </li> </ul> <p> Sample program exposing the issue. </p> Ticket Chris Moore <cmoore@…> Wed, 23 Nov 2011 16:49:15 GMT attachment set https://svn.boost.org/trac10/ticket/6169 https://svn.boost.org/trac10/ticket/6169 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch-against-1.48.0.patch</span> </li> </ul> <p> Patch against 1.48.0 that fixes the example for me. </p> Ticket viboes Sun, 25 Jan 2015 15:46:35 GMT owner, status changed https://svn.boost.org/trac10/ticket/6169#comment:1 https://svn.boost.org/trac10/ticket/6169#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Daryle Walker</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Sun, 25 Jan 2015 16:23:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6169#comment:2 https://svn.boost.org/trac10/ticket/6169#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> The implementation has changed completely. </p> <p> I have tested and it works for me now 1.57. </p> Ticket viboes Sun, 25 Jan 2015 16:26:43 GMT <link>https://svn.boost.org/trac10/ticket/6169#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6169#comment:3</guid> <description> <p> <a class="ext-link" href="https://github.com/boostorg/integer/commit/1ff7278d5f4f6aa68386f2b5622b34c44b32e26d"><span class="icon">​</span>https://github.com/boostorg/integer/commit/1ff7278d5f4f6aa68386f2b5622b34c44b32e26d</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>