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

List:       pykde
Subject:    [PyQt] Const-correctness of sipCpp
From:       Giovanni Bajo <rasky () develer ! com>
Date:       2009-12-04 11:44:28
Message-ID: 1259927068.4261.6.camel () lilax
[Download RAW message or body]

Hi Phil,

Within %MethodCode, sipCpp is not const-correct: it always is of
non-const pointer type, even within const methods.

This can cause some subtle bugs, for instance when accessing a method
which has two overloads (a const one, and a slower non-const one, as it
usually happens with containers, for instance).

I believe it would make sense for sipCpp to be a const pointer type when
accessed from within the %MethodCode of a const method.

Thanks!
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

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