448. Random Access Iterators over abstract classes

Section: [random.access.iterators] Status: CD1 Submitter: Dave Abrahams Opened: 2004-01-07 Last modified: 2016-01-28 10:19:27 UTC

Priority: Not Prioritized

View all other issues in [random.access.iterators].

View all issues with CD1 status.


Table 76, the random access iterator requirement table, says that the return type of a[n] must be "convertible to T". When an iterator's value_type T is an abstract class, nothing is convertible to T. Surely this isn't an intended restriction?

Proposed resolution:

Change the return type to "convertible to T const&".