Skip to content

Commit 19f42f6

Browse files
burblebeetkoeppe
authored andcommitted
CWG2711 Source for copy-initializing the exception object
1 parent e495b95 commit 19f42f6

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎source/exceptions.tex‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,14 @@
257257

258258
\pnum
259259
Throwing an exception
260-
copy-initializes\iref{dcl.init,class.copy.ctor} a temporary object,
260+
initializes a temporary object,
261261
called the
262262
\defnx{exception object}{exception handling!exception object}.
263263
If the type of the exception object would be
264-
an incomplete type,
264+
an incomplete type\iref{basic.types.general},
265265
an abstract class type\iref{class.abstract},
266-
or a pointer to an incomplete type other than \cv{}~\keyword{void}
266+
or a pointer to an incomplete type other than
267+
\cv{}~\keyword{void}\iref{basic.compound}
267268
the program is ill-formed.
268269

269270
\pnum

‎source/expressions.tex‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7089,6 +7089,8 @@
70897089
The type of the exception object is determined by removing
70907090
any top-level \grammarterm{cv-qualifier}{s} from the type of the
70917091
(possibly converted) operand.
7092+
The exception object is copy-initialized\iref{dcl.init.general}
7093+
from the (possibly converted) operand.
70927094

70937095
\pnum
70947096
\indextext{exception handling!rethrow}%

0 commit comments

Comments
 (0)