This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Immediate status.
Section: 21.4.1 [meta.syn] Status: Immediate Submitter: Tim Song Opened: 2026-03-25 Last modified: 2026-03-25
Priority: Not Prioritized
View all other issues in [meta.syn].
View all issues with Immediate status.
Discussion:
We are missing a statement about the lifetime and other properties of the strings returned from the reflection functions.
[Croydon 2026-03-25; move to Immediate.]
Proposed resolution:
This wording is relative to N5032.
Modify 21.4.1 [meta.syn] as indicated:
-3- Any function in namespace
std::metawhose return type isstring_vieworu8string_viewreturns an objectVsuch thatV.data()[V.size()]equals'\0'. Each element of the rangeV.data()+ [0,V.size()] is a potentially non-unique object with static storage duration that is usable in constant expressions (6.8.2 [intro.object], 7.7 [expr.const]); a pointer to such an element is not suitable for use as a template argument for a constant template parameter of pointer type (13.4.3 [temp.arg.nontype]).