Lightning Talk: Const Mayhem in C++
summary
Claims and concrete surprises: const methods legally modify members via a pointer-initialized member that increments memory and runs on major compilers, a const object cannot be default-initialized unless a user-provided default constructor exists and defining that constructor out-of-class can make it compile, the standard mishandles volatile members of const objects, and some of these patterns are technically undefined behavior yet accepted by compilers.
AI-written summary · about
related talks
06mLightning Talk: Fun with Pointers to Members
07mLightning Talk: Higher-Order Template Metaprogramming with C++23
05mLightning Talk: The Main Points in C++ - Dots in C++
49mTypical C++, But Why?
01h 01mBack to Basics: Concepts in C++
52mClasses C++23 Style
06mLightning Talk: Direct Aggregate Initialisation
06mLightning Talk: Unlocking More Ways To Use Range-Based For
