This is the mail archive of the gcc-help@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] |
| Other format: | [Raw text] | |
Any recommendations on the best way to get the desired functionality? (C2 which is an I2 interface yet inherits the implementation from C1).
One way that seems to work is to add "C2::a() { C1::a(); }", but it doesn't seem quite right.
Thanks,
Johannes Schmidt
jschmidt@avtrex.com
AOL IM: "Avtrex Jschmidt"
cell 650-823-0462
office 408-985-8600
fax 408-516-8558
-----Original Message----- From: John Love-Jensen [mailto:eljay@adobe.com] Sent: Tuesday, July 31, 2007 9:57 AM To: David Daney; MSX to GCC Cc: Johannes P. Schmidt Subject: Re: Why do I get: cannot declare variable Œ sc¹ to be of abstract type...
Hi Dave,
I would think that I1::a() is not virtual because it is defined in thesuper class C1. What is going on here?
I1::a was defined in super class C1 for the C1 half of the multiple inheritance (via C2::C1::I2::defined a), but the I2 half's (via C2::I2::I1::pure virtual a) a has not been concretely defined anywhere up that inheritance chain.
HTH, --Eljay
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |