Ah, I just re-read what you said and I now see that I was talking out of my rear end, sorry. sam
-----Original Message----- From: Sam Partington [mailto:sam.partington@codescape.com] Sent: 24 July 2002 16:29 To: Boost-Users@yahoogroups.com Subject: RE: [Boost-Users] pass through buffer
I think you just want to do this:
static void pass_through(std::iostream & stream) { std::istream_iterator<char> in(stream), end; std::ostream_iterator<char> out(stream); std::copy(in, end, out); }
Which will just copy everything from the in steam to the out stream until it hits an eof.
hth
sam
-----Original Message----- From: Tom Howard [mailto:tomhoward@users.sourceforge.net] Sent: 24 July 2002 16:49 To: Boost-Users@yahoogroups.com Subject: [Boost-Users] pass through buffer
Hi,
I found some old emails about a pass through stream buffer, but I can't find it in the boost library. Am I going blind?
Basically I'm in the middle of writing a gzstream class that compresses and decompresses data to and from a iostream and I thought this pass through buffer would be exactly what I need. Anyone know where it is or have any other pointers for me?
Thanks in advance.
Cheers,
Tom Howard
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/