Changes between Initial Version and Version 3 of Ticket #2640


Ignore:
Timestamp:
Jan 14, 2011, 4:55:02 PM (12 years ago)
Author:
Dave Abrahams
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2640

    • Property Summary counting_iterator::reference lifetime tied to iteratorLegal forward iterators cannot store their referents (was: counting_iterator::reference lifetime tied to iterator)
  • Ticket #2640 – Description

    initial v3  
     1The iterators library needs a redesign based on the facts noted in [[#comment:2|this comment]]
     2
     3The original report is below.
     4
     5----
     6
     7
     8
    19Currently, counting_iterator<T>::reference is Incrementable const&. This makes reverse_iterator< counting_iterator<T> >::dereference return a reference to a temporary variable:
    210