Boost logo

Boost Users :

From: Daniel Schlyder (daniel_at_[hidden])
Date: 2004-12-30 12:12:49


Hi,

I have a class derived from boost::io::sink that I use as follows:

boost::io::stream_facade<printsink> os;
os << "foo" << std::flush;
os->set_colour(255, 255, 0);
os << "bar";

How can I flush the buffer in set_colour() method instead of requiring the
user to do it?

TIA,

--
Daniel Schlyder
http://bitblaze.com/

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