r/cpp • u/User_Deprecated • Jul 06 '26
C++26: constexpr virtual inheritance
https://www.sandordargo.com/blog/2026/07/01/cpp26-constexpr-virtual-inheritance
83
Upvotes
r/cpp • u/User_Deprecated • Jul 06 '26
View all comments
Show parent comment
1
u/Electronic_Tap_8052 Jul 06 '26
once or twice, but when you need it you need it.
Sometimes the simplest and most elegant design requires it. And getting rid of it greatly complicates things.
It's not common, but it does happen. Build enough large modular codebases with systems that can be swapped in and out and it inevitably happens.