665. do_unshift return value

Section: [locale.codecvt.virtuals] Status: CD1 Submitter: Thomas Plum Opened: 2007-04-16 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [locale.codecvt.virtuals].

View all issues with CD1 status.

Discussion: [locale.codecvt.virtuals], para 8 says:

codecvt<char,char,mbstate_t>, returns noconv.

The following objection has been raised:

Despite what the C++ Standard says, unshift can't always return noconv for the default facets, since they can be nontrivial. At least one implementation does whatever the C functions do.

[Plum ref _222152Y62]

Proposed resolution:

Change [locale.codecvt.virtuals], p8:

Returns: An enumeration value, as summarized in Table 76:


codecvt<char,char,mbstate_t>, returns noconv.