Boost C++ Libraries: Ticket #2537: Minor documenation bug regarding BOOST_STATIC_ASSERT(std::numeric_limits<UnsignedInt>::is_signed) https://svn.boost.org/trac10/ticket/2537 <p> The page: <a href="http://www.boost.org/doc/libs/1_37_0/doc/html/boost_staticassert.html">http://www.boost.org/doc/libs/1_37_0/doc/html/boost_staticassert.html</a> </p> <p> Has the following example: #include &lt;climits&gt; #include &lt;boost/static_assert.hpp&gt; </p> <p> template &lt;class <a class="missing wiki">UnsignedInt</a>&gt; class myclass { private: </p> <blockquote> <p> BOOST_STATIC_ASSERT((std::numeric_limits&lt;<a class="missing wiki">UnsignedInt</a>&gt;::digits &gt;= 16) </p> <blockquote> <p> &amp;&amp; std::numeric_limits&lt;<a class="missing wiki">UnsignedInt</a>&gt;::is_specialized &amp;&amp; std::numeric_limits&lt;<a class="missing wiki">UnsignedInt</a>&gt;::is_integer &amp;&amp; !std::numeric_limits&lt;<a class="missing wiki">UnsignedInt</a>&gt;::is_signed); </p> </blockquote> </blockquote> <p> public: </p> <blockquote> <p> /* details here */ </p> </blockquote> <p> }; </p> <hr /> <p> The problem being that &lt;limits&gt; provides ::is_signed, rather than &lt;climits&gt; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2537 Trac 1.4.3 Daniel James Wed, 26 Nov 2008 10:13:55 GMT owner, component changed https://svn.boost.org/trac10/ticket/2537#comment:1 https://svn.boost.org/trac10/ticket/2537#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matias Capeletto</span> to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">Documentation</span> → <span class="trac-field-new">static_assert</span> </li> </ul> Ticket John Maddock Tue, 23 Dec 2008 12:03:45 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2537#comment:2 https://svn.boost.org/trac10/ticket/2537#comment:2 <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/50371" title="Fix inclusion of incorrect header. Fixes #2537.">[50371]</a>) Fix inclusion of incorrect header. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2537" title="#2537: Bugs: Minor documenation bug regarding ... (closed: fixed)">#2537</a>. </p> Ticket