3621. Remove feature-test macro __cpp_lib_monadic_optional

Section: 17.3.2 [version.syn] Status: C++23 Submitter: Jens Maurer Opened: 2021-10-18 Last modified: 2023-11-22 15:47:43 UTC

Priority: Not Prioritized

View other active issues in [version.syn].

View all other issues in [version.syn].

View all issues with C++23 status.


P0798R8 "Monadic operations for std::optional" created a new feature-test macro __cpp_lib_monadic_optional for a relatively minor enhancement.

We should instead increment the value of the existing feature-test macro __cpp_lib_optional.

[2022-01-29; Reflector poll]

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

[2022-02-10 Approved at February 2022 virtual plenary. Status changed: Tentatively Ready → WP.]

Proposed resolution:

This wording is relative to N4901.

  1. Modify 17.3.2 [version.syn] as indicated:

    #define __cpp_lib_monadic_optional 202110L // also in <optional>
    #define __cpp_lib_optional 202106L202110L // also in <optional>