Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-04-11 15:00:33

"Peter Dimov" <pdimov_at_[hidden]> writes:

> 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( "" );
> std::ofstream os( "" );
> os << is.rdbuf();
> No proposal required, in principle.

Except that any code involving an identifier spelled "rdbuf" fails the
"do the obvious thing in an obvious way" test.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at