Explore the intricacies of constexpr usage in C++20 with Jason Turner's conference talk from C++ on Sea 2024. Delve into the "constexpr two-step" method for generating compile-time data of unknown size and efficiently transferring it to runtime while minimizing binary sizes. Learn why simple constexpr declarations for std::vector and std::string don't compile as expected, and discover practical techniques to leverage constexpr capabilities effectively. Gain insights from Turner's two decades of C++ experience as he unravels the complexities of compile-time computations and their integration with runtime environments.
Overview
Syllabus
Understanding The constexpr 2-Step - Jason Turner - C++ on Sea 2024
Taught by
cpponsea