Boost C++ Libraries: Ticket #7966: static_assert: doc: nitpicking https://svn.boost.org/trac10/ticket/7966 <p> The following patch is really cosmetic. The doc reads: </p> <pre class="wiki"> BOOST_STATIC_ASSERT((std::numeric_limits&lt;UnsignedInt&gt;::digits &gt;= 16) &amp;&amp; std::numeric_limits&lt;UnsignedInt&gt;::is_specialized &amp;&amp; std::numeric_limits&lt;UnsignedInt&gt;::is_integer &amp;&amp; !std::numeric_limits&lt;UnsignedInt&gt;::is_signed); </pre><p> It does not make much sense, imho, to check <code>is_specialized</code> _after_ having already use <code>digits</code>. I know all this is meant to fail, but it makes more sense to check <code>is_specialized</code> first, and the number of digits after we know this is an unsigned int. (FWIW, I would use four assertions, to facilitate the understanding of what failed). </p> <p> Thanks for Boost, I'm a happy user! </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7966 Trac 1.4.3 Akim Demaille <akim.demaille@…> Sat, 02 Feb 2013 17:14:16 GMT attachment set https://svn.boost.org/trac10/ticket/7966 https://svn.boost.org/trac10/ticket/7966 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">static-assert-doc.patch</span> </li> </ul> <p> doc patch </p> Ticket John Maddock Thu, 14 Feb 2013 18:31:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7966#comment:1 https://svn.boost.org/trac10/ticket/7966#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82886" title="Use variadic macros in static assert to make use easier. Add warning ...">[82886]</a>) Use variadic macros in static assert to make use easier. Add warning suppression for GCC. Minor doc fix. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5810" title="#5810: Bugs: BOOST_STATIC_ASSERT requires unnecessary parentheses (closed: fixed)">#5810</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7242" title="#7242: Bugs: GCC 4.8 warns unused local typedef (closed: fixed)">#7242</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7966" title="#7966: Bugs: static_assert: doc: nitpicking (closed: fixed)">#7966</a>. </p> Ticket