Skip to content

Commit 80b5db2

Browse files
burblebeetkoeppe
authored andcommitted
LWG4556 Unclear properties of reflection strings
1 parent 8f77bc2 commit 80b5db2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

source/meta.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3317,8 +3317,17 @@
33173317
\pnum
33183318
Any function in namespace \tcode{std::meta}
33193319
whose return type is \tcode{string_view} or \tcode{u8string_view}
3320+
%FIXME: V should not be \exposid since it's not a declared \expos varible,
3321+
%use math font or \placeholder instead.
33203322
returns an object \exposid{V} such that
33213323
\tcode{\exposid{V}.data()[\exposid{V}.size()]} equals \tcode{'\textbackslash 0'}.
3324+
Each element of the range
3325+
\tcode{\exposid{V}.data() +} \range{0}{\exposid{V}.size()}
3326+
is a potentially non-unique object with static storage duration that
3327+
is usable in constant expressions\iref{intro.object, expr.const};
3328+
a pointer to such an element is not suitable for use as
3329+
a template argument for a constant template parameter of
3330+
pointer type\iref{temp.arg.nontype}.
33223331
\begin{example}
33233332
\begin{codeblock}
33243333
struct C { };

0 commit comments

Comments
 (0)