Boost C++ Libraries: Ticket #2931: boost/dynamic_bitset/dynamic_bitset.hpp fails to compile, seems to have a ) in the wrong place https://svn.boost.org/trac10/ticket/2931 <p> Around line 81, the code is: </p> <blockquote> <p> reference(block_type &amp; b, block_type pos) </p> <blockquote> <p> :m_block(b), </p> <blockquote> <p> m_mask( (assert(pos &lt; bits_per_block), </p> <blockquote> <p> block_type(1) &lt;&lt; pos ) </p> </blockquote> <p> ) </p> </blockquote> </blockquote> </blockquote> <p> This fails to compile. Should it not instead be </p> <blockquote> <p> reference(block_type &amp; b, block_type pos) </p> <blockquote> <p> :m_block(b), </p> <blockquote> <p> m_mask( (assert(pos &lt; bits_per_block)), </p> <blockquote> <p> block_type(1) &lt;&lt; pos ) </p> </blockquote> </blockquote> </blockquote> </blockquote> <p> As last time I checked, assert took exactly one parameter... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2931 Trac 1.4.3 Steven Watanabe Thu, 09 Apr 2009 15:29:33 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2931#comment:1 https://svn.boost.org/trac10/ticket/2931#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">invalid</span> </li> </ul> <p> In the current code, only one argument is being passed to assert. Look carefully at the positions of the parentheses. </p> Ticket