Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2003-06-12 13:45:06


Larry Evans wrote:
[snip]

> The prototype of the "using overflow+sputc" method is in
> files/col_io/test_fwd_streambuf.zip.

A more complete marg_ostream example is in
files/col_io/test_marg_ostreambuf.zip. It
shows how an ostream indentation can be changed
without resorting to a wrapper class like
marg_ostream in col_io/col_io.zip. It also
shows how to change the indentation with
use of dynamic_cast and call to marg_ostreambuf
member function. It also shows how the
original status of the ostream can be restored
by simply deleting the result of ostream::rdbuf.

Any comments? Maybe this method could be used
with Maxim's adaptors?


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