Boost logo

Boost Users :

From: Sam Partington (sam.partington_at_[hidden])
Date: 2002-07-24 11:39:00


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_at_[hidden]]
> Sent: 24 July 2002 16:29
> To: Boost-Users_at_[hidden]
> 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_at_[hidden]]
> > Sent: 24 July 2002 16:49
> > To: Boost-Users_at_[hidden]
> > 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_at_[hidden]>
> >
> >
> > 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_at_[hidden]>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net