Skip to content

Commit 8470169

Browse files
authored
Merge 2018-11 CWG Motion 9
P1327R1 Allowing dynamic_cast, polymorphic typeid in Constant Expressions Fixes #2401
2 parents 9430782 + 5fa3e06 commit 8470169

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
@@ -6626,9 +6626,6 @@
66266626
\item
66276627
a conversion from type \cv{}~\tcode{void*} to a pointer-to-object type;
66286628

6629-
\item
6630-
a dynamic cast\iref{expr.dynamic.cast};
6631-
66326629
\item
66336630
a \tcode{reinterpret_cast}\iref{expr.reinterpret.cast};
66346631

@@ -6642,10 +6639,6 @@
66426639
that refers to a non-volatile object
66436640
whose lifetime began within the evaluation of \tcode{e};
66446641

6645-
\item
6646-
a typeid expression\iref{expr.typeid} whose operand is a glvalue of a
6647-
polymorphic class type;
6648-
66496642
\item
66506643
a \grammarterm{new-expression}\iref{expr.new};
66516644

@@ -6662,7 +6655,9 @@
66626655
operator where the result is unspecified;
66636656

66646657
\item
6665-
a \grammarterm{throw-expression}\iref{expr.throw}; or
6658+
a \grammarterm{throw-expression}\iref{expr.throw} or
6659+
a dynamic cast\iref{expr.dynamic.cast} or \tcode{typeid}\iref{expr.typeid} expression
6660+
that would throw an exception; or
66666661

66676662
\item
66686663
an invocation of the \tcode{va_arg} macro\iref{cstdarg.syn}.

0 commit comments

Comments
 (0)