[Boost-bugs] [Boost C++ Libraries] #1919: Default constructed circular buffer throws std::bad_alloc

Subject: [Boost-bugs] [Boost C++ Libraries] #1919: Default constructed circular buffer throws std::bad_alloc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-15 11:09:43


#1919: Default constructed circular buffer throws std::bad_alloc
----------------------------------------+-----------------------------------
 Reporter: mikhailberis | Owner: jano_gaspar
     Type: Bugs | Status: new
Milestone: Boost 1.35.1 | Component: circular_buffer
  Version: Boost 1.35.0 | Severity: Showstopper
 Keywords: circular_buffer, bad_alloc |
----------------------------------------+-----------------------------------
 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).

 A proposed change is to make the default constructor instead set the
 capacity to 0.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1919>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC