
on Sat May 24 2008, Roland Schwarz <roland.schwarz-AT-chello.at> 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 http://svn.boost.org? Thanks, -- Dave Abrahams BoostPro Computing http://www.boostpro.com