[PyKDE] function overload with different type using SIP
Zilin Du
zd223 at nyu.edu
Fri Nov 18 17:56:40 GMT 2005
Hi, I got some problem for using overload functions using SIP (4.3.2),
here is my example:
class A {
public:
A(long)
A(unsigned long)
A(double)
int cmp(long)
int cmp(unsigned long)
int cmp(double)
};
when I run sip, sip complains:
A constructor with the same Python signature has already been defined
A function with the same Python signature has already been defined
if I remove:
A(double)
int cmp(double)
then no error.
so I don't know how we can define two overloaded function which can
take long or double. Can anyone can share me his experience using sip?
Thanks!
Zilin
More information about the PyQt
mailing list