https://cpponsea.uk
---
Understanding The constexpr 2-Step - Jason Turner - C++ on Sea 2024
---
C++20 enabled both std::vector and std::string for constexpr usage. However, this simple case does not compile:
constexpr std::vector<int>data{1,2,3,4,5};
If we cannot create constexpr strings and vectors, then what good are they for constexpr use?
This talk will cover the "constexpr two-step." A method of getting data of unknown size generated at compile time into the runtime world while minimizing binary sizes in the process.
---
Slides: https://github.com/philsquared/cpponsea2024-slides/blob/main/Presentations/Understanding_The_constexpr_Two_Step.pdf
Sponsored by Bloomberg: https://www.bloomberg.com/company/values/tech-at-bloomberg/c-plus-plus/
Sponsored By think-cell: https://www.think-cell.com/cpponsea
---
Jason Turner
Jason has 2 decades of C++ experience and is a regular conference speaker, developer, and trainer. He has been publishing weekly C++ videos on his YouTube channel, C++ Weekly, since 2016.
---
C++ on Sea is the international C++ conference taking place by the sea, in the UK. Our venue is in Folkestone, Kent, near the entrance to the channel tunnel with stunning views across the English Channel.
Annual C++ On Sea Conference - https://www.cpponsea.uk
https://www.linkedin.com/company/cpponsea/
https://x.com/cpponsea
https://www.facebook.com/profile.php?id=61551121766573
https://www.reddit.com/r/CppOnSea/
https://vmst.io/@cpponsea
---
YouTube Videos Filmed, Edited & Optimised by Digital Medium: https://events.digital-medium.co.uk
---
#cpp #cplusplus #cppprogramming #programming #cpponsea