Title
Feature test macro for `error_code` formatting
Status
ready
Section
[version.syn]
Submitter
Jonathan Wakely

Created on 2026-07-17.00:00:00 last changed 2 weeks ago

Messages

Date: 2026-09-10.14:03:08

Proposed resolution:

This wording is relative to N5050.

  1. Modify [version.syn] as indicated:

    #define __cpp_lib_format             202603L // also in <format>
    #define __cpp_lib_format_error_code  202606L // also in <system_error>
    #define __cpp_lib_format_path        202506L // also in <filesystem>
    
Date: 2026-08-15.00:00:00

[ 2026-08-27; Reflector poll. ]

Set status to Tentatively Ready after 9 votes in favour during reflector poll.

Date: 2026-07-17.00:00:00

P3395R6 added a `std::formatter` specialization for `error_code`, but without a feature test macro. During the review of the pull request to apply the paper to the working draft there were requests for a feature test macro.

History
Date User Action Args
2026-09-10 14:03:08adminsetmessages: + msg16597
2026-09-10 14:03:08adminsetstatus: new -> ready
2026-07-17 16:44:49adminsetmessages: + msg16524
2026-07-17 00:00:00admincreate