Boost logo

Boost :

Subject: [boost] using of circular_buffer
From: (q3wolfi_at_[hidden])
Date: 2012-03-27 20:41:47

Hello there,

i am new here and i just want to say "hi".

so, i'm using boost almost a year now, usually i just used the array
latley i wanted to implement the circular_buffer.
i've defined it in a class after the private-modifier like this:

boost::circular_buffer<std::string> textBuffer(10);

(as take from the documentation)

but my compiler on minGW will throw an error. so, i guess i got
something wrong in declaring a string-textbuffer with the lenght of 10?!

in the boost-docs there is following example:
boost::circular_buffer<int> cb(3);

help is appreciated, best would be a working example and a little hint
which information is may have missed.


Boost list run by bdawes at, gregod at, cpdaniel at, john at