Skip to content

Commit 043ee62

Browse files
committed
[diff.cpp17.except] Add a note that there is no longer a way to write
code that is non-throwing in both C++20 and C++03.
1 parent fd244b5 commit 043ee62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/compatibility.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,6 +1966,13 @@
19661966
for its exception specification will be rejected as ill-formed in this
19671967
International Standard. It should simply be replaced with \tcode{noexcept} for no
19681968
change of meaning since \CppXVII{}.
1969+
\begin{note}
1970+
There is no way to write a function declaration
1971+
that is non-throwing in this International Standard
1972+
and is also non-throwing in \CppIII{}
1973+
except by using the preprocessor to generate
1974+
a different token sequence in each case.
1975+
\end{note}
19691976

19701977
\rSec2[diff.cpp17.library]{\ref{library}: library introduction}
19711978

0 commit comments

Comments
 (0)