Skip to content

Commit 00be21b

Browse files
committed
LWG4428 Metafunctions should not be defined in terms of constant subexpressions
1 parent cd1a9ee commit 00be21b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

source/meta.tex

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5454,13 +5454,14 @@
54545454

54555455
\pnum
54565456
\throws
5457-
\tcode{meta::exception} unless
5457+
\tcode{meta::exception} if
54585458
\begin{itemize}
54595459
\item
5460-
\tcode{nonstatic_data_members_of(\brk{}r, access_context::\brk{}unchecked())}
5461-
is a constant subexpression and
5460+
the evaluation of
5461+
\tcode{nonstatic_data_members_of(r, access_context::unchecked())}
5462+
would exit via an exception or
54625463
\item
5463-
\tcode{r} does not represent a closure type.
5464+
\tcode{r} represents a closure type.
54645465
\end{itemize}
54655466
\end{itemdescr}
54665467

@@ -5477,9 +5478,9 @@
54775478

54785479
\pnum
54795480
\throws
5480-
\tcode{meta::exception} unless
5481+
\tcode{meta::exception} if the evaluation of
54815482
\tcode{bases_of(r, access_context::unchecked())}
5482-
is a constant subexpression.
5483+
would exit via an exception.
54835484
\end{itemdescr}
54845485

54855486
\indexlibraryglobal{has_inaccessible_subobjects}%
@@ -6039,7 +6040,8 @@
60396040
\tcode{meta::exception} unless
60406041
\begin{itemize}
60416042
\item
6042-
\tcode{annotations_of(item)} is a constant expression and
6043+
the evaluation of
6044+
\tcode{annotations_of(item)} would not exit via an exception and
60436045
\item
60446046
\tcode{dealias(type)} represents a type and
60456047
\tcode{is_complete_type(type)} is \tcode{true}.

0 commit comments

Comments
 (0)