This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.

2478. Unclear how wstring_convert uses cvtstate

Section: 99 [depr.conversions.string] Status: Resolved Submitter: Jonathan Wakely Opened: 2015-03-04 Last modified: 2025-11-11

Priority: 4

View all other issues in [depr.conversions.string].

View all issues with Resolved status.

Discussion:

How do wstring_convert::from_bytes and wstring_convert::to_bytes use the cvtstate member?

Is it passed to the codecvt member functions? Is a copy of it passed to the member functions? "Otherwise it shall be left unchanged" implies a copy is used, but if that's really what's intended there are simpler ways to say so.

[2025-11-10 Resolved by the removal of wstring_convert via paper P2872R3 in Tokyo, 2024. Status changed: New → Resolved.]

Proposed resolution: