[boost][circular_buffer] problem using copy contructor
Hello,
I'm new to circular_buffer. After reading the documentation i expect the
following should work:
const int c = 5;
boost::circular_buffer<int> cb1(c);
assert(cb1.capacity() == c);
boost::circular_buffer<int> cb2(cb1);
assert(cb2.capacity() == c); //failed, capacity() returns 0
But it does'nt work. After looking into the code of circular_buffer, i
think the copy c'tor should be changed into something like this:
circular_buffer(const circular_buffer
participants (1)
-
Andreas Rose