|
Boost Users : |
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
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