Title
Random Access Iterators over abstract classes
Status
cd1
Section
[random.access.iterators]
Submitter
Dave Abrahams

Created on 2004-01-07.00:00:00 last changed 142 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

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

Date: 2004-01-07.00:00:00

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?

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2671
2004-01-07 00:00:00admincreate