[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] virtual functions and const pointer to const AnyType
From:       Gerard Vermeulen <gerard.vermeulen () grenoble ! cnrs ! fr>
Date:       2005-10-22 10:08:47
Message-ID: 20051022120847.0f16ee62.gerard.vermeulen () grenoble ! cnrs ! fr
[Download RAW message or body]

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
 

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic