Skip to content

Commit 019651b

Browse files
committed
CWG2854 Storage duration of exception objects
1 parent eb6f2df commit 019651b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

source/basic.tex

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4296,15 +4296,9 @@
42964296
Temporary objects are created
42974297
\begin{itemize}
42984298
\item
4299-
when a prvalue is converted to an xvalue\iref{conv.rval},
4299+
when a prvalue is converted to an xvalue\iref{conv.rval} and
43004300
\item
4301-
when needed by the implementation to pass or return an object of trivially copyable type (see below),
4302-
and
4303-
\item
4304-
when throwing an exception\iref{except.throw}.
4305-
\begin{note}
4306-
The lifetime of exception objects is described in~\ref{except.throw}.
4307-
\end{note}
4301+
when needed by the implementation to pass or return an object of trivially copyable type (see below).
43084302
\end{itemize}
43094303
Even when the creation of the temporary object is
43104304
unevaluated\iref{expr.context},

source/exceptions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257

258258
\pnum
259259
Throwing an exception
260-
initializes a temporary object,
260+
initializes an object with dynamic storage duration,
261261
called the
262262
\defnx{exception object}{exception handling!exception object}.
263263
If the type of the exception object would be

0 commit comments

Comments
 (0)