Multiple inheritance problem

This is a discussion on Multiple inheritance problem within the C++ Programming forums, part of the General Programming Boards category; I'm having some problems with multiple inheritance, in my case where the hiearchy first splits then joins again. Ok, first ...

Multiple inheritance problem

I'm having some problems with multiple inheritance, in my case where the hiearchy first splits then joins again. Ok, first some background. I'm working on a DLL so I need pure virtual interfaces for each class. In one case I have one base class and several classes inherited from that one, call them

Make IBase a virtual base of both CSub1 and ISub1. This eliminates ambiguity about your CSub1 having a diamond of death (which means that CSub1 contains two instances of IBase internally, either of which may have a pure virtual function).