Overview
Watch a comprehensive conference talk from code::dive that explores modern error handling approaches in C++, from traditional exception handling to newer features like std::optional in C++17 and std::expected in C++23. Learn about the trade-offs between different error handling methods including boolean returns, error codes, global/thread local error status, and pointer/reference arguments. Examine when and how to effectively use assertions and understand the role of upcoming contract features. Discover strategies for making flexible error handling decisions at the optimal time in your development process. Delivered by Phil Nash, the original author of Catch2 testing framework, ISO C++ standards committee member, and experienced C++ community organizer, this 49-minute presentation provides practical insights for writing safer and more secure code through proper error management techniques.
Syllabus
Phil Nash - Modern C++ Error Handling
Taught by
code::dive conference