consteval All The Things?

Jason Turner

⏱ 90 minute session
intermediate
advanced
14:30-16:00, Friday, 4th April 2025
consteval: a powerful tool from C++20 that forces the compiler to evaluate code at compile time. What what can, or even should, be forced to compile time? What advantages and disadvantages are there to using consteval in real code?
🏷 constexpr
🏷 consteval
🏷 best practices
🏷 debugging
🏷 undefined behavior
🏷 testability
🏷 code coverage

Jason Turner

Jason is a C++ developer, trainer, and regular conference speaker. He has hosted the YouTube channel C++ Weekly since 2016, and has authored several C++ puzzle books and C++ Best Practices books.