Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2005-12-06 14:04:37


"Victor A. Wagner Jr." <vawjr_at_[hidden]> writes:

> At 14:16 2005-12-05, François Duranleau wrote:
>>Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
>>X-MIME-Autoconverted: from 8bit to
>>quoted-printable by milliways.osl.iu.edu id jB5LNecL002899
>>
>>On Sat, 3 Dec 2005, Victor A. Wagner Jr. wrote:
>>
>>>After reading (and re-reading a few times) the documentation on
>>>range, it appears to me that there is little (if any) difference between:
>>>boost::sub_range<T>
>>>and
>>>boost::iterator_range<T::iterator>
>>
>>Seems to me that sub_range is a convenience class to describe
>>iterator ranges from ranges or containers that model ForwardRange,
>>from which you can propagate constness.
>
> yup, that's what I thought also

So what's the distinction? The constness of a subrange affects the
constness of its iterators? or...?

Having two such beasts in Boost seems on the surface like a clear case
of brokenness.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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