$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jeff Garland (jeff_at_[hidden])
Date: 2006-04-11 10:44:21
On Tue, 11 Apr 2006 13:33:38 +0300, Peter Dimov wrote
> David Abrahams wrote:
> > Jeff Garland <jeff_at_[hidden]> writes:
> >
> >> Sounds good. I am worried that even with the iostream integration
> >> the proposal won't have Doug's one-line wget implementation, but
> >> we'll see.
> >
> > Fortunately, Doug wrote "one slide," not "one line."
>
> std::ifstream is( "http://www.example.com/file.zip" );
> std::ofstream os( "file.zip" );
> os << is.rdbuf();
Point taken -- of course you need some sort of socket stream or OS support to
acheive this (for fun I tried this on my Linux box -- didn't work). I'm
mostly interesting in how to get basic_streambuf as a buffer for asio to
enable this sort of higher layer construction.
Jeff