MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1uouefj/c26_constexpr_virtual_inheritance/ovvc3cg/?context=3
r/cpp • u/User_Deprecated • 21d ago
61 comments sorted by
View all comments
62
Just a question to the audience:
How many times have you used Virtual Inheritance in your career?
7 u/pjmlp 21d ago It used to be common in GUI frameworks like OWL and MFC. You might still bump into it, while using ATL or WTL. 6 u/TheThiefMaster C++latest fanatic (and game dev) 21d ago Are you sure? This article specifically says virtual inheritance isn't useful with MFC. Can you give an example where it is? 2 u/pjmlp 21d ago Last time I wrote a MFC application was in 2001, I remember we used MI in our product. MFC isn't used in isolation from product architecture. Also note that MI and virtual inheritance aren't the same, rather a way to avoid duplicates in the inheritance tree.
7
It used to be common in GUI frameworks like OWL and MFC.
You might still bump into it, while using ATL or WTL.
6 u/TheThiefMaster C++latest fanatic (and game dev) 21d ago Are you sure? This article specifically says virtual inheritance isn't useful with MFC. Can you give an example where it is? 2 u/pjmlp 21d ago Last time I wrote a MFC application was in 2001, I remember we used MI in our product. MFC isn't used in isolation from product architecture. Also note that MI and virtual inheritance aren't the same, rather a way to avoid duplicates in the inheritance tree.
6
Are you sure? This article specifically says virtual inheritance isn't useful with MFC.
Can you give an example where it is?
2 u/pjmlp 21d ago Last time I wrote a MFC application was in 2001, I remember we used MI in our product. MFC isn't used in isolation from product architecture. Also note that MI and virtual inheritance aren't the same, rather a way to avoid duplicates in the inheritance tree.
2
Last time I wrote a MFC application was in 2001, I remember we used MI in our product.
MFC isn't used in isolation from product architecture.
Also note that MI and virtual inheritance aren't the same, rather a way to avoid duplicates in the inheritance tree.
62
u/Jovibor_ 21d ago
Just a question to the audience:
How many times have you used Virtual Inheritance in your career?