$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] begin (cout) or boost::copy to cout
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-09-13 17:59:25
AMDG
On 09/13/2011 02:35 PM, Krzysztof Żelechowski wrote:
> == The Problem ==
>
> Boost.Range defines boost:: begin to give you the iterator to every possible
> container â except ostream.
>
Why is this a problem? An ostream is not a container.
Neither of your proposed solutions make ostream
a valid range, so overloading boost::begin is
just confusing. I don't see what the problem
with just using std::ostream_iterator directly is.
In Christ,
Steven Watanabe