From 5c874dc8b6368e423823850c9664bf61058a55a5 Mon Sep 17 00:00:00 2001 From: Sebastien Ponce Date: Mon, 30 Sep 2024 14:15:45 +0200 Subject: [PATCH] mention std::expected as replacement for exceptions --- 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 df88885f..33771089 100644 --- a/talk/morelanguage/exceptions.tex +++ b/talk/morelanguage/exceptions.tex @@ -214,7 +214,7 @@ \end{itemize} \item \textit{don't} use exceptions to provide alternative/skip return values \begin{itemize} - \item you can use \cppinline{std::optional} or \cppinline{std::variant} + \item you can use \cppinline{std::optional}, \cppinline{std::variant} or \cppinline{std::expected} (\cpp23) \item avoid using the global C-style \cppinline{errno} \end{itemize} \item never throw in destructors