Ticket #1919: boost-circular-buffer-default-constructor-patch.diff

File boost-circular-buffer-default-constructor-patch.diff, 440 bytes (added by Dean Michael Berris, 14 years ago)

Patch to set the default size when default constructed to 0.

  • base.hpp

    old new  
    921921    */
    922922    explicit circular_buffer(const allocator_type& alloc = allocator_type())
    923923    : m_size(0), m_alloc(alloc) {
    924         initialize(max_size());
     924        initialize(0);
    925925    }
    926926
    927927    //! Create an empty <code>circular_buffer</code> with the specified capacity.