mirror of
https://github.com/boostorg/iterator.git
synced 2026-01-25 16:02:20 +01:00
This avoids returning a copy of the value from operator[], which can be unexpected by users wanting to obtain an address of the value referenced by the iterator. We still want to return a proxy instead of the iterator's reference since the iterator may be holding the value internally, and the iterator gets destroyed after returning from operator[], so the returned reference would be dangling. Closes https://github.com/boostorg/iterator/issues/61.