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

### 2174. `wstring_convert::converted()` should be `noexcept`

Section: D.23.2 [depr.conversions.string] Status: C++14 Submitter: Jonathan Wakely Opened: 2012-08-02 Last modified: 2017-04-22

Priority: Not Prioritized

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

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

View all issues with C++14 status.

Discussion:

There is no reason `wstring_convert::converted()` shouldn't be `noexcept`.

It might be possible for `wstring_convert::state()` and `wbuffer_convert::state()` to be `noexcept` too, depending on the requirements on `mbstate_t`.

[2013-03-15 Issues Teleconference]

Moved to Tentatively Ready.

Defer the separate discsussion of `state()` to another issue, if anyone is ever motivated to file one.

[2013-04-20 Bristol]

Proposed resolution:

This wording is relative to N3376.

1. Edit in the class template `wstring_convert` synopsis [conversions.string] p2:

   >     size_t converted() const noexcept;

2. Edit the signature before [conversions.string] p6:

   >     size_t converted() const noexcept;