Movatterモバイル変換


[0]ホーム

URL:



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

3137. Header for__cpp_lib_to_chars

Section: 17.3.1[support.limits.general]Status:C++20Submitter: S. B. TamOpened: 2018-07-03Last modified: 2022-08-23

Priority:0

View all otherissues in [support.limits.general].

View all issues withC++20 status.

Discussion:

After acceptance ofP0941R2 into the working draft, in [support.limits.general],__cpp_lib_to_chars is required to be in<utility>. Since the relevant feature (std::to_chars andstd::from_chars) is now in the header<charconv>, should the macro be defined in<charconv> instead of<utility>?

[Marshall provides P/R and context]

std::to_chars, etc were originally proposed for the header<utility>and SD-6 reflected that. Somewhere along the way, they was put into their own header<charconv>, but the document was never updated to reflect that.

When these macros were added to the standard, the (now incorrect) value was copied as well.

[2018-07-20 Status to Tentatively Ready after five positive votes on the reflector.]

[2018-11, Adopted in San Diego]

Proposed resolution:

This wording is relative to (the Rapperswil post-mailing standard).

Change 17.3.1[support.limits.general] (Table 35) as indicated:

Macro nameValueHeader(s)
__cpp_lib_to_chars201611L<charconvutility>

[8]ページ先頭

©2009-2026 Movatter.jp