[PyQt] SIP and multiple inheritance ambiguity

Scott Talbert swt at techie.net
Sat Jun 4 03:26:25 BST 2016


Hi,

I'm trying to wrap a set of classes that have a diamond multiple 
inheritance hierarchy (A inherits from B and C; B and C inherit from D).

When SIP generates the cast_A function, it won't compile under GCC 6.1.1 
due to an ambiguous base error:
error: 'D' is an ambiguous base of 'A'
          return static_cast<D *>(sipCpp);

Any ideas on how to work around this, other than hand editing the cast_X 
function?

Thanks,
Scott


More information about the PyQt mailing list