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

Section: 24.3.2.6.4 [string.insert], 24.3.2.6.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();