Conference | Live Schedule | Talks | Get your ticket | Slides | Set your timezone
To Err is Human: Robust Error Handling in C++26

Sebastian Theophil
On Day 1 at 13:15 (CET/Berlin) in Track A [Saphir Room and online]
Every program may encounter errors, some originating from internal bugs in the program, others coming from the environment the program is operating in. Ignoring all errors will make the program utterly unreliable, while treating every conceivable one introduces lots of extra complexity with little benefit. So which errors should you handle? And how should you handle them? This talk describes our proven approach to error handling so that you can write more reliable software with less effort.
C++23 and C++26 have seen several improvements to C++ error handling: std::stacktrace, std::expected, contracts and library hardening. We will cover these features as well and how to best use them in practice to catch more errors, report them and fix them.
Please login to comment