Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2008-05-24 20:03:31

on Sat May 24 2008, Roland Schwarz <> wrote:

> Roland Schwarz wrote:
>> However operator[] returns something that is convertible to
>> "reference" and not to value_type (as I expected). Can this
>> behaviour of iterator_facade be controlled somehow?
> The attached patch to iterator_facade made my "Readable" and
> "Writeable" == "Swapable" iterator work. However I am not
> practised enough to tell if this will break something else.
> At least it makes the bracket_proxy return something that is
> convertible to value_type and not only to reference.

That looks like a correct fix to me. I plan to spend a little time on
the iterator library soon, and would be very happy to apply this (or
something very like it). Would you mind submitting your patch in a
ticket at


Dave Abrahams
BoostPro Computing

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