Re: [boost] Iostreams 'drain' algorithm proposal

Hello Anrew,
I have a patch, should there be any interest.
I would be interested in your patch. Regards, Oliver

Hi Oliver, On Friday 06 January 2006 06:19, Oliver.Kowalke@infineon.com 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. Andrew Walrond
participants (2)
-
Andrew Walrond
-
Oliver.Kowalke@infineon.com