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

YouTube

The Expected Outcome: Error Handling with std::expected in C++

Meeting Cpp via YouTube

Overview

Explore error handling in C++ with a focus on the std::expected feature introduced in C++23 in this comprehensive conference talk from Meeting C++ 2022. Delve into the various ways of encoding errors in C++ types, including std::expected and alternatives like Boost.Outcome. Learn about the pros and cons of different error handling methods and discover how to implement a complete "expected" type before C++26. Examine advanced usage patterns that simplify working with expected-like types, moving beyond traditional error-handling approaches. Investigate the integration of expected-like types with C++20 coroutines, offering a syntax reminiscent of try-catch blocks without the drawbacks of exceptions. While the core concepts are accessible to beginners, be prepared for more complex implementation details throughout the presentation.

Syllabus

the expected outcome - Ivan Čukić - Meeting C++ 2022

Taught by

Meeting Cpp

Reviews

Start your review of The Expected Outcome: Error Handling with std::expected in C++

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.