Title
Description of basic_string::operator[] is unclear
Status
nad
Section
[string.capacity]
Submitter
AFNOR

Created on 1998-10-07.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

The Standard is correct. The proposed resolution already appears in the Standard.

Date: 2010-10-21.18:28:33

Proposed resolution:

Rewrite as: Otherwise, if pos > size () or pos == size () and the non-const version is used, then the behavior is undefined.

Date: 1998-10-07.00:00:00

It is not clear that undefined behavior applies when pos == size () for the non const version.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg438
2010-10-21 18:28:33adminsetmessages: + msg437
1998-10-07 00:00:00admincreate