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

141. basic_string::find_last_of, find_last_not_of say pos instead of xpos

Section: 23.4.3.7.4 [string.insert], 23.4.3.7.6 [string.replace] Status: TC1 Submitter: Arch Robison Opened: 1999-04-28 Last modified: 2016-11-12

Priority: Not Prioritized

View all other issues in [string.insert].

View all issues with TC1 status.

Discussion:

Sections 21.3.6.4 paragraph 1 and 21.3.6.6 paragraph 1 surely have misprints where they say:

xpos <= pos and pos < size();

Surely the document meant to say ``xpos < size()'' in both places.

[Judy Ward also sent in this issue for 21.3.6.4 with the same proposed resolution.]

Proposed resolution:

Change Sections 21.3.6.4 paragraph 1 and 21.3.6.6 paragraph 1, the line which says:

xpos <= pos and pos < size();

to:

xpos <= pos and xpos < size();