Skip to content

Commit 0c2977f

Browse files
committed
P1327R1 Allowing dynamic_cast, polymorphic typeid in Constant Expressions
1 parent 12935b8 commit 0c2977f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

source/expressions.tex

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6629,9 +6629,6 @@
66296629
\item
66306630
a conversion from type \cv{}~\tcode{void*} to a pointer-to-object type;
66316631

6632-
\item
6633-
a dynamic cast\iref{expr.dynamic.cast};
6634-
66356632
\item
66366633
a \tcode{reinterpret_cast}\iref{expr.reinterpret.cast};
66376634

@@ -6645,10 +6642,6 @@
66456642
that refers to a non-volatile object
66466643
whose lifetime began within the evaluation of \tcode{e};
66476644

6648-
\item
6649-
a typeid expression\iref{expr.typeid} whose operand is a glvalue of a
6650-
polymorphic class type;
6651-
66526645
\item
66536646
a \grammarterm{new-expression}\iref{expr.new};
66546647

@@ -6665,7 +6658,9 @@
66656658
operator where the result is unspecified;
66666659

66676660
\item
6668-
a \grammarterm{throw-expression}\iref{expr.throw}; or
6661+
a \grammarterm{throw-expression}\iref{expr.throw} or
6662+
a dynamic cast\iref{expr.dynamic.cast} or typeid\iref{expr.typeid} expression
6663+
that would throw an exception; or
66696664

66706665
\item
66716666
an invocation of the \tcode{va_arg} macro\iref{cstdarg.syn}.

0 commit comments

Comments
 (0)