This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: abstract base classes & MI


On Fri, Feb 19, 1999 at 04:35:06PM -0800, Mike Stump wrote:

[diamond-shaped inheritance snipped]

> > I don't see the ambiguity.
> 
> Which subobject did you want the virtual foo valled with?  A_impl or
> a_interface?  How does the code indicate that?  (It doesn't.)  Put in
> a virtual base for A_impl and A_interface and link A_impl to
> A_interface and it'll work as written.

Whoops; the code I wrote had "A_impl : public A_interface" but apparently
lost it somewhere down the line.  Making the inheritance virtual was the
step I was missing.  Thanks, and sorry for using this list for a C++ Q&A. 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]