Stuck in Tutorial Hell? Learn Backend Dev the Right Way
Learn Generative AI, Prompt Engineering, and LLMs for Free
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
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