Boost logo

Boost :

Subject: [boost] [iostreams]howto replace ostream buffer?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-01-09 22:18:45


How can one use iostreams::filtering_streambuf to replace the
std::basic_streambuf used by cout. I've tried the code in 1st
attachment; however, that code produces the output in 2nd attachment.
The desired output is shown in 3ird attachment.

How should the code be modified to get the desired output?

TIA.

-regards,
Larry

Hello World!
is_complete=1
3ird Hello!

Hello World!
is_complete=1
2ND HELLO!
3ird Hello!



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