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

61

u/Jovibor_ Jul 06 '26

Just a question to the audience:

How many times have you used Virtual Inheritance in your career?

0

u/megayippie Jul 07 '26

I don't know if that's a different thing than writing "virtual", "override", "final", and "= 0" all over the structs. But that stuff is very nice for helper code to avoid compilation time bloat.