From: Andrew Walrond (andrew_at_[hidden])
Date: 2006-01-06 04:45:24
On Friday 06 January 2006 06:19, Oliver.Kowalke_at_[hidden] wrote:
> I would be interested in your patch.
drain.hpp is attached. If you compare it side-by-side with iostreams/copy.hpp,
you will find that drain uses the copy_impl functions from copy.hpp, but
reimplements the copy() functions as drain(), the one difference being not
closing the sink (shown commented out in the source for visibility).
The code in copy.hpp could perhaps be modified to allow a simpler
implementation of drain, but at the expense of extra complexity in the copy*
templates. I went for the easier, non-invasive approach of just
reimplementing the necessary functions in a seperate header file.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk