Skip to content

Commit 425315f

Browse files
committed
[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 70954ed commit 425315f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

source/exceptions.tex

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,9 @@
10161016

10171017
\pnum
10181018
\indextext{\idxcode{terminate}}%
1019-
% FIXME: What does it mean to abandon exception handling?
1020-
In some situations, exception handling is abandoned
1021-
for less subtle error handling techniques.
1019+
Some errors in a program cannot be recovered from, such as when an exception is
1020+
not handled or a thread is destroyed while still running. In such cases,
1021+
the function \tcode{std::terminate}\iref{exception.terminate} is invoked.
10221022
\begin{note}
10231023
These situations are:
10241024
\indextext{\idxcode{terminate}!called}%
@@ -1112,8 +1112,6 @@
11121112

11131113
\pnum
11141114
\indextext{\idxcode{terminate}}%
1115-
In such cases,
1116-
the function \tcode{std::terminate} is invoked\iref{exception.terminate}.
11171115
In the situation where no matching handler is found, it is
11181116
\impldef{stack unwinding before invocation of \tcode{std::terminate}}
11191117
whether or not the stack is unwound

0 commit comments

Comments
 (0)