Title
Unclear properties of reflection strings
Status
immediate
Section
[meta.syn]
Submitter
Tim Song

Created on 2026-03-25.00:00:00 last changed 5 days ago

Messages

Date: 2026-03-25.17:20:05

Proposed resolution:

This wording is relative to N5032.

  1. Modify [meta.syn] as indicated:

    -3- Any function in namespace `std::meta` whose return type is `string_view` or `u8string_view` returns an object `V` such that `V.data()[V.size()]` equals `'\0'`. Each element of the range `V.data()` + [0, `V.size()`] is a potentially non-unique object with static storage duration that is usable in constant expressions ([intro.object], [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 ([temp.arg.nontype]).

Date: 2026-03-25.17:20:05

[ Croydon 2026-03-25; move to Immediate. ]

Date: 2026-03-25.00:00:00

We are missing a statement about the lifetime and other properties of the strings returned from the reflection functions.

History
Date User Action Args
2026-03-25 17:20:05adminsetmessages: + msg16088
2026-03-25 17:20:05adminsetstatus: new -> immediate
2026-03-25 01:28:00adminsetmessages: + msg16063
2026-03-25 00:00:00admincreate