Wednesday
Room 4
10:20 - 11:20
(UTC+02)
Talk (60 min)
How to declare a constant in C++
C++ is beautiful in the way that even the simplest things can be unexpectedly challenging and complex. You’d think that nothing could be easier than declaring a constant, right?
C++
Choose the most suitable way to define it: a global variable, a local variable, or a static class data member. Maybe a template. Set the right linkage and storage duration. Use some combination of specifiers like static, inline, and constexpr for that. Maybe use extern in some cases. How does it play along with modules by the way?..
If all of this is obvious to you — congratulations! That’s impressive. But if this whole zoo makes your head spin a bit, let’s try to untangle it together.