Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2003-06-21 12:52:10


Larry Evans wrote:

[snip]

> The articles at:
>
> http://www.gabi-soft.fr/articles-en.html
>
> pretty much confirms that Kanze's code does more (and possibly does it
> better) than my code at files/col_io/test_ostreambuf_decorator.zip.

[snip]

http://groups.yahoo.com/group/boost/files/col_io/delta.tar.gz

when combined with:

http://www.gabi-soft.fr/gabi-lib.tgz

demonstrates both adjustable left margins and line numbering. Kanze's
software defines the sync method to synchronize the "final" destination
streambuf, which makes perfect sense since all other streambufs are
empty. It also probably better to put the "final" streambuf at
the beginning of the list of streambufs instead of at the end, as
test_ostreambuf_decorator.zip does, since that makes inserting more
"filters" or, using another term, decorators into the pipe.

Maybe someone else could experiment with the code to get a better idea?


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