This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD Editorial status.

1415. Iterator stability bans the short-string optimization

Section: 26.2.1 [container.requirements.general] Status: NAD Editorial Submitter: INCITS Opened: 2010-08-25 Last modified: 2017-02-03

Priority: Not Prioritized

View other active issues in [container.requirements.general].

View all other issues in [container.requirements.general].

View all issues with NAD Editorial status.


Requirements on iterators swapping allegiance would disallow the small-string optimization.

[ Resolved in Rapperswil by paper N3108. ]

Proposed resolution:

Add an exclusion for basic_string to the sentence beginning “Every iterator referring to an element...”. Add a sentence to saying that iterators and references to string elements remain valid, but it is not specified whether they refer to the same string or the other string.