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.

368. basic_string::replace has two "Throws" paragraphs

Section: [string.replace] Status: NAD Editorial Submitter: Beman Dawes Opened: 2002-06-03 Last modified: 2016-11-12

Priority: Not Prioritized

View all other issues in [string.replace].

View all issues with NAD Editorial status.

Discussion: [string.replace] basic_string::replace, second signature, given in paragraph 1, has two "Throws" paragraphs (3 and 5).

In addition, the second "Throws" paragraph (5) includes specification (beginning with "Otherwise, the function replaces ...") that should be part of the "Effects" paragraph.

Proposed resolution:


This is editorial. Both "throws" statements are true. The bug is just that the second one should be a sentence, part of the "Effects" clause, not a separate "Throws". The project editor has been notified.