24 Feb
2009
24 Feb
'09
4:52 p.m.
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