Boost logo

Boost :

Subject: [boost] using of circular_buffer
From: news.gmane.org (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
component.
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.

greetings
tony


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk