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.

74. Garbled text for codecvt::do_max_length

Section: [locale.codecvt] Status: TC1 Submitter: Matt Austern Opened: 1998-09-08 Last modified: 2017-02-03

Priority: Not Prioritized

View all other issues in [locale.codecvt].

View all issues with TC1 status.


The text of codecvt::do_max_length's "Returns" clause (, paragraph 11) is garbled. It has unbalanced parentheses and a spurious n.

Proposed resolution:

Replace [locale.codecvt.virtuals] paragraph 11 with the following:

Returns: The maximum value that do_length(state, from, from_end, 1) can return for any valid range [from, from_end) and stateT value state. The specialization codecvt<char, char, mbstate_t>::do_max_length() returns 1.