Subject: Re: [boost] [range] Should ranges really propagate constess to the data ?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-07-23 08:21:42
On Fri, Jul 22, 2011 at 6:16 PM, Mathias Gaunard
> That explains the strange problems I had when I tried using sub_range.
> iterator_range does not have those problems.
> But it seems to be a feature, it you look at the doc of sub_range it says,
> when comparing sub_range to iterator_range,
> "Moreover, the sub_range class can propagate constness since it knows what a
> corresponding const_iterator is."
> This is, in my opinion, a mistake.
> const sub_range<T> should *not* behave like sub_range<const T>.
What's the problem with it?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk