[PyKDE] problem with static member function resolution

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Sat Mar 4 11:22:21 GMT 2006

Phil, the following header works with SIP-4.3.2, but not with the recent
SIP snapshots:

class A
    A() {}
    virtual ~A() {}
    static int bar() { return 3; }

class B: public A
    B(): A() {}
    virtual ~B() {}
    static int bar(int oops) { return 3*oops; }

The attached tar.gz contains a minimal example.  The output of SIP
leads to the following compile errors:

g++ -c -pipe -fPIC -O2 -Wall -W -I. -I/home/packer/usr/include/python2.4 -o sipsB.o sipsB.cpp
sipsB.cpp: In static member function `static int sipB::sipProtect_bar()':
sipsB.cpp:30: error: no matching function for call to `B::bar()'
./s.h:19: note: candidates are: static int B::bar(int)
make: *** [sipsB.o] Error 1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: s-0.1.tar.gz
Type: application/octet-stream
Size: 1124 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060304/b485058b/s-0.1.tar.obj

More information about the PyQt mailing list