Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Modern C++ Error Handling - From Exceptions to Expected Types

code::dive conference via YouTube

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

Reviews

Start your review of Modern C++ Error Handling - From Exceptions to Expected Types

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.