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

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

class B: public A
{
public:
    B(): A() {}
    virtual ~B() {}
private:
    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


Gerard

Attachment: s-0.1.tar.gz
Description: Binary data

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to