[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KSharedPixmap does not compile
From:       Waldo Bastian <bastian () suse ! de>
Date:       1999-12-19 16:24:02
[Download RAW message or body]

On Sun, 19 Dec 1999, David Faure wrote:

> KPixmap:: doesn't help. Didn't try KPixmap::QPixmap:: :-)
> 
> I agree with you, this should compile.
> But gcc-2.95 doesn't like it (looks like a bug in gcc-2.95 :
> it resolves the call to QPaintDevice::handle() and _then_
> looks at the inheritance tree and says it's ambiguous).

You inherit twice from QPaintDevice so the compiler doesn't know 
_which_ QPaintDevice::handle() to call. The object contains _two_ 
inherited QPaintDevice classes, one inherited via KPixmap and one 
inherited via QWidget.

Double inheritance is _NOT_ a good idea. 

Cheers,
Waldo

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic