Boost C++ Libraries: Ticket #1852: copy constructor does not copy capacity https://svn.boost.org/trac10/ticket/1852 <p> After looking at the code, the following behavior looks like a bug: </p> <p> boost::circular_buffer&lt;int&gt; one(3); boost::circular_buffer&lt;int&gt; two(one); </p> <p> std::cout&lt;&lt;one.capacity()&lt;&lt;std::endl; <em> outputs 3 std::cout&lt;&lt;two.capacity()&lt;&lt;std::endl; </em> outputs 0, I was expecting 3 </p> <p> My best guess at a patch attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1852 Trac 1.4.3 Stjepan Rajko Thu, 24 Apr 2008 01:07:35 GMT attachment set https://svn.boost.org/trac10/ticket/1852 https://svn.boost.org/trac10/ticket/1852 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">base.hpp.patch</span> </li> </ul> <p> patch </p> Ticket Stjepan Rajko Thu, 24 Apr 2008 01:08:52 GMT summary changed https://svn.boost.org/trac10/ticket/1852#comment:1 https://svn.boost.org/trac10/ticket/1852#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">copy constructor not copy capacity</span> → <span class="trac-field-new">copy constructor does not copy capacity</span> </li> </ul> Ticket Jan Gaspar Wed, 21 May 2008 16:19:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1852#comment:2 https://svn.boost.org/trac10/ticket/1852#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> Ticket dthompson@… Fri, 30 May 2008 18:38:42 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/1852#comment:3 https://svn.boost.org/trac10/ticket/1852#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> this problem is still encountered in boost 1.35. </p> Ticket Jan Gaspar Wed, 23 Jul 2008 20:46:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1852#comment:4 https://svn.boost.org/trac10/ticket/1852#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> will not fix for 1.35 </p> Ticket