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

3373. {to,from}_chars_result and format_to_n_result need the "we really mean what we say" wording

Section: 28.2.1 [charconv.syn], 28.5.1 [format.syn] Status: C++20 Submitter: Tim Song Opened: 2020-01-16 Last modified: 2021-02-25

Priority: 0

View all other issues in [charconv.syn].

View all issues with C++20 status.

Discussion:

To ensure that to_chars_result, from_chars_result, and format_to_n_result can be used in structured bindings, they need the special wording we use to negate the general library permission to add private data members and bases.

[2020-02-01 Status set to Tentatively Ready after six positive votes on the reflector.]

Proposed resolution:

This wording is relative to N4842.

  1. Add a paragraph at the end of 28.2.1 [charconv.syn] as follows:

    -?- The types to_chars_result and from_chars_result have the data members and special members specified above. They have no base classes or members other than those specified.

  2. Add a paragraph at the end of 28.5.1 [format.syn] as follows:

    -1- The class template format_to_n_result has the template parameters, data members, and special members specified above. It has no base classes or members other than those specified.