Title
Add feature-test macro `__cpp_lib_reflection` to <type_traits>
Status
new
Section
[version.syn]
Submitter
Ivan Lazaric

Created on 2026-09-17.00:00:00 last changed yesterday

Messages

Date: 2026-09-20.09:25:35

Proposed resolution:

This wording is relative to N5054.

  1. Modify [version.syn] as indicated:

    […]
    #define __cpp_lib_reference_wrapper    202403L // freestanding, also in <functional>
    #define __cpp_lib_reflection           202603L // also in <meta>, <type_traits>
    #define __cpp_lib_remove_cvref         201711L // freestanding, also in <type_traits>
    […]
    
Date: 2026-09-17.00:00:00

Paper P2996 added feature-test macro `__cpp_lib_reflection`, exposed only in <meta> (and <version>). It also added entities to <type_traits>, such as `std::is_reflection`.

The mentioned feature-test macro should therefore be added to <type_traits> as well.

History
Date User Action Args
2026-09-20 09:25:35adminsetmessages: + msg16619
2026-09-17 00:00:00admincreate