Boost C++ Libraries: Ticket #1919: Default constructed circular buffer throws std::bad_alloc https://svn.boost.org/trac10/ticket/1919 <p> When a circular buffer is default constructed, it causes an allocation that's very large causing usually a bad allocation error when using the standard allocator(s). </p> <p> A proposed change is to make the default constructor instead set the capacity to 0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1919 Trac 1.4.3 Dean Michael Berris Thu, 15 May 2008 11:16:12 GMT attachment set https://svn.boost.org/trac10/ticket/1919 https://svn.boost.org/trac10/ticket/1919 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-circular-buffer-default-constructor-patch.diff</span> </li> </ul> <p> Patch to set the default size when default constructed to 0. </p> Ticket Jan Gaspar Wed, 21 May 2008 16:18:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1919#comment:1 https://svn.boost.org/trac10/ticket/1919#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> Ticket Mon, 03 Nov 2008 14:20:34 GMT milestone deleted https://svn.boost.org/trac10/ticket/1919#comment:2 https://svn.boost.org/trac10/ticket/1919#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-deleted">Boost 1.35.1</span> </li> </ul> <p> Milestone Boost 1.35.1 deleted </p> Ticket