
10 Jan
2009
10 Jan
'09
6:53 p.m.
AMDG Larry Evans wrote:
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?
Try flushing the stream before switching back to the original buffer. In Christ, Steven Watanabe