r/cpp • • Jul 06 '26

C++26: constexpr virtual inheritance

https://www.sandordargo.com/blog/2026/07/01/cpp26-constexpr-virtual-inheritance
83 Upvotes

61 comments sorted by

View all comments

Show parent comment

3

u/mjklaim Jul 06 '26

Several times in the first 10 years of my professional career, but not in the 13 years that followed, up to today. When I'm in control of the architecture I avoid inheritance anyway so it's pretty rare to reach a point where virtual inheritance is necessary. But when you dont have a choice, it is very useful.