|
Boost Users : |
Subject: Re: [Boost-users] circular_buffer_space_optimized possible bug
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-24 11:52:18
AMDG
Birju Prajapati wrote:
> int main()
> {
> boost::circular_buffer_space_optimized<int> buf;
> std::cout << buf.size() << std::endl;
> buf.push_back(1);
> std::cout << buf.size() << std::endl;
> }
>
> I get the output
> 0
> 0
> Is this a bug? This is boost 1.38, gcc 4.3.2
> It works fine with boost 1.35, gcc 4.1.2 (gives the output 0,1)
The capacity of a circular buffer is fixed.
The capacity of a default constructed circular buffer
is now zero.
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net