From ab9f14e10d4bfae9f4cfbaaaa874cfdde3923166 Mon Sep 17 00:00:00 2001 From: Sebastien Ponce Date: Fri, 14 Mar 2025 16:45:10 +0100 Subject: [PATCH] Fixed slide on noexcept --- talk/morelanguage/exceptions.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talk/morelanguage/exceptions.tex b/talk/morelanguage/exceptions.tex index 6a608db5..77a08686 100644 --- a/talk/morelanguage/exceptions.tex +++ b/talk/morelanguage/exceptions.tex @@ -319,7 +319,7 @@ \end{cppcode*} \begin{itemize} \item either no exceptions is thrown or they are handled internally - \item checked at compile time + \item if one is thrown, `std::terminate` is called \item allows the compiler to optimize around that knowledge \end{itemize} \item a function with \cppinline{noexcept(expression)} is only \cppinline{noexcept} when \cppinline{expression} evaluates to \cppinline{true} at compile-time