The Expected Outcome: Error Handling with std::expected in C++
Offered By: Meeting Cpp via YouTube
Course Description
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
Related Courses
How C++23 Changes the Way We Write CodeNDC Conferences via YouTube A Preview of C++ 23
NDC Conferences via YouTube Let's Talk About C++ Abstraction Layers
CppNow via YouTube Top 5 Library Additions in C++23
CppNow via YouTube mp-units - Lessons Learned and a New C++ Library Design
ACCU Conference via YouTube