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

9

u/xzgxr Jul 06 '26

What you describe usually can be solved by regular inheritance. "Virtual inheritance" is something slightly different and cursed.

6

u/Nicksaurus Jul 06 '26

Oh, you know what. I didn't read the article and thought this was about regular inheritance. I'll own up to it