Title
string::erase(iterator) validity
Status
cd1
Section
[string.erase]
Submitter
Martin Sebor

Created on 2003-09-18.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

The LWG considered two options: changing the string requirements to match the general container requirements, or just removing the erroneous string requirements altogether. The LWG chose the latter option, on the grounds that duplicating text always risks the possibility that it might be duplicated incorrectly.

Date: 2010-10-21.18:28:33

Proposed resolution:

Remove [string.erase] paragraph 5.

Date: 2003-09-18.00:00:00

23.1.1, p3 along with Table 67 specify as a prerequisite for a.erase(q) that q must be a valid dereferenceable iterator into the sequence a.

However, 21.3.5.5, p5 describing string::erase(p) only requires that p be a valid iterator.

This may be interepreted as a relaxation of the general requirement, which is most likely not the intent.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2601
2010-10-21 18:28:33adminsetmessages: + msg2600
2003-09-18 00:00:00admincreate