This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofCD1 status.
Section: 24.3.5.7[random.access.iterators]Status:CD1Submitter: Dave AbrahamsOpened: 2004-01-07Last modified: 2016-01-28
Priority:Not Prioritized
View all otherissues in [random.access.iterators].
View all issues withCD1 status.
Discussion:
Table 76, the random access iterator requirement table, says that thereturn type of a[n] must be "convertible to T". When an iterator'svalue_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&".