[PyKDE] virtual functions and const pointer to const AnyType

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Sat Oct 22 11:08:47 BST 2005


SIP does not allow declarations like

virtual void f(const AnyType* const);

Dropping the second const works with g++, but MSVC.NET 2003 issues a warning.
Worse: the Python version of the virtual function in a Python derived
subclass gets never called.

I work around this problem by making configure.py patch the second const in
the SIP-generated code.

Gerard
 




More information about the PyQt mailing list