Conference | Live Schedule | Talks | Get your ticket | Slides | Set your timezone
Harnessing constexpr: A Path to Safer C++

Mikhail Svetkin
On Day 1 at 14:30 (CET/Berlin) in Track B [Opal Room and online]
In the ongoing debate about the safety of C++, undefined behavior (UB), bounds checking, and memory leaks often dominate the conversation. While some argue that these pitfalls are inherent to the language’s power and flexibility, modern C++ standards have introduced mechanisms to mitigate these risks.
This talk explores how leveraging constexpr from its inception in C++11 through its evolution in C++26, can significantly improve code safety. We’ll look at common safety issues in C++, explore tools and sanitizers that help and demonstrate how constexpr can be a powerful but often overlooked solution.
Please login to comment