Boost C++ Libraries: Ticket #2172: dynamic_bitset constructor problem https://svn.boost.org/trac10/ticket/2172 <p> Two constiructors in dynamic_bitset: </p> <p> ============================================ dynamic_bitset(size_type num_bits, unsigned long value = 0, const Allocator&amp; alloc = Allocator()) </p> <p> and </p> <p> template &lt;typename <a class="missing wiki">BlockInputIterator</a>&gt; dynamic_bitset(<a class="missing wiki">BlockInputIterator</a> first, <a class="missing wiki">BlockInputIterator</a> last, const Allocator&amp; alloc = Allocator()) ============================================ </p> <p> If I want to create dynamic_bitset object with 8 bits and default value 0x07 ("dynamic_bitset(8, 0x07)"), that will use second constructor, not first. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2172 Trac 1.4.3 Gennaro Prota Wed, 20 Aug 2008 16:34:43 GMT owner, status changed; cc set https://svn.boost.org/trac10/ticket/2172#comment:1 https://svn.boost.org/trac10/ticket/2172#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">gennaro.prota@…</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">jsiek</span> to <span class="trac-author">Gennaro Prota</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Yep. The match is normal; but the second constructor should detect the case and "do the right thing", as standard sequences are required to do (though, of course, dynamic_bitset isn't such a beast). </p> <p> I had implemented this, but didn't commit it because, back then, I didn't have enough time to follow the regression reports, and the code has (by experience) a fair potential to break on several broken compilers and libraries (yeah... broken on broken :-)). I'll do it now, as soon as I'll see the result of some other changes I applied this morning. BTW, I only saw your report today. </p> <p> Thanks,<br /> Gennaro. </p> Ticket Gennaro Prota Tue, 26 Aug 2008 17:59:16 GMT keywords, type, milestone changed https://svn.boost.org/trac10/ticket/2172#comment:2 https://svn.boost.org/trac10/ticket/2172#comment:2 <ul> <li><strong>keywords</strong> dispatch iterator InputIterator overload size_type integral integer added </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.37.0</span> </li> </ul> Ticket Gennaro Prota Sun, 14 Sep 2008 11:16:54 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2172#comment:3 https://svn.boost.org/trac10/ticket/2172#comment:3 <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">fixed</span> </li> </ul> <p> It's now committed, both on trunk and branches/release, so it will be in Boost 1.37.0. The updated documentation can be browsed at<br /> </p> <ul><li>trunk/libs/dynamic_bitset/dynamic_bitset.html<br /> </li></ul><p> or<br /> </p> <ul><li>branches/release/libs/dynamic_bitset/dynamic_bitset.html </li></ul> Ticket