Post by Philotheou » 19 Feb 2024, 12:43
https://stackoverflow.com/questions/2659116/how-does-virtual-inheritance-solve-the-diamond-multiple-inheritance-ambiguit
If your shared-base class isn't virtual then you will have 2 copies in memory ... and there's no good way to say which copy you want to access.
If your shared-base class
is virtual then you will have only 1 copy in the inheritance diagram and then you can access its members as with any base member.
HTH...
https://stackoverflow.com/questions/2659116/how-does-virtual-inheritance-solve-the-diamond-multiple-inheritance-ambiguit
If your shared-base class isn't virtual then you will have 2 copies in memory ... and there's no good way to say which copy you want to access.
If your shared-base class [b]is [/b]virtual then you will have only 1 copy in the inheritance diagram and then you can access its members as with any base member.
HTH...