From pykde Fri Dec 04 19:08:42 2009 From: Phil Thompson Date: Fri, 04 Dec 2009 19:08:42 +0000 To: pykde Subject: Re: [PyQt] Const-correctness of sipCpp Message-Id: X-MARC-Message: https://marc.info/?l=pykde&m=125995415819576 On Fri, 04 Dec 2009 12:44:28 +0100, Giovanni Bajo wrote: > 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. Agreed - added to the TODO list. Phil _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt