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.
Section: 28.3.4.2.5 [locale.codecvt] Status: TC1 Submitter: Nathan Myers Opened: 1998-08-06 Last modified: 2016-08-09
Priority: Not Prioritized
View all other issues in [locale.codecvt].
View all issues with TC1 status.
Duplicate of: 10
Discussion:
In the definitions of codecvt<>::do_out and do_in, they are specified to return noconv if "no conversion is needed". This definition is too vague, and does not say normatively what is done with the buffers.
Proposed resolution:
Change the entry for noconv in the table under paragraph 4 in section 28.3.4.2.5.3 [locale.codecvt.virtuals] to read:
noconv
:internT
andexternT
are the same type, and input sequence is identical to converted sequence.
Change the Note in paragraph 2 to normative text as follows:
If returns
noconv
,internT
andexternT
are the same type and the converted sequence is identical to the input sequence[from,from_next)
.to_next
is set equal toto
, the value ofstate
is unchanged, and there are no changes to the values in[to, to_limit)
.