Skip to content

Commit eac0893

Browse files
AlisdairMtkoeppe
authored andcommitted
[except.terminate] Better describe the function
While 'std:terminate' was originally conceived as the way to report failures in the exception handling machinery, it has evolved to become a more general tool for reporting unrecoverable failures in the C++ runtime. This rewording attempts to address that evolving design, and in doing so addresses the outstanding %FIXME% that the current text is not adequately descriptive in the first place.
1 parent 2981bd9 commit eac0893

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/exceptions.tex

+4-5
Original file line numberDiff line numberDiff line change
@@ -1012,9 +1012,10 @@
10121012

10131013
\pnum
10141014
\indextext{\idxcode{terminate}}%
1015-
% FIXME: What does it mean to abandon exception handling?
1016-
In some situations, exception handling is abandoned
1017-
for less subtle error handling techniques.
1015+
Some errors in a program cannot be recovered from, such as when an exception
1016+
is not handled or a \tcode{std::thread} object is destroyed while its thread
1017+
function is still executing. In such cases,
1018+
the function \tcode{std::terminate}\iref{exception.terminate} is invoked.
10181019
\begin{note}
10191020
These situations are:
10201021
\indextext{\idxcode{terminate}!called}%
@@ -1108,8 +1109,6 @@
11081109

11091110
\pnum
11101111
\indextext{\idxcode{terminate}}%
1111-
In such cases,
1112-
the function \tcode{std::terminate} is invoked\iref{exception.terminate}.
11131112
In the situation where no matching handler is found, it is
11141113
\impldef{stack unwinding before invocation of \tcode{std::terminate}}
11151114
whether or not the stack is unwound

0 commit comments

Comments
 (0)