Skip to content

Commit 4b7b88d

Browse files
Sebastien Poncesponce
Sebastien Ponce
authored andcommitted
mention std::expected as replacement for exceptions
1 parent f8f2b38 commit 4b7b88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: talk/morelanguage/exceptions.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
\end{itemize}
215215
\item \textit{don't} use exceptions to provide alternative/skip return values
216216
\begin{itemize}
217-
\item you can use \cppinline{std::optional} or \cppinline{std::variant}
217+
\item you can use \cppinline{std::optional}, \cppinline{std::variant} or \cppinline{std::expected} (\cpp23)
218218
\item avoid using the global C-style \cppinline{errno}
219219
\end{itemize}
220220
\item never throw in destructors

0 commit comments

Comments
 (0)