Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
A conference talk from CppCon 2024 where Phil Nash explores comprehensive approaches to error handling in modern C++. Dive into the evolution of error handling mechanisms, from traditional exceptions to newer features like std::optional (C++17) and std::expected with Monadic Operations (C++23). Learn when to use different error handling strategies including boolean returns, error codes, global/thread local error status, and pointer/reference arguments. Understand the role of assertions and upcoming contracts in error management. The presentation addresses critical questions about making optimal error handling decisions at the right time in your development process, with special attention to how error conditions impact code safety and security. Phil Nash, the original author of Catch2 testing framework, ISO C++ standards committee member, and experienced trainer, provides valuable insights for both novice and experienced C++ developers looking to improve their error handling practices.
Syllabus
Modern C++ Error Handling - Phil Nash - CppCon 2024
Taught by
CppCon