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

List:       pykde
Subject:    Re: [PyKDE] sip: copy constructors
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2003-12-24 19:50:57
[Download RAW message or body]

On Wednesday 17 December 2003 9:32 am, Patrick Stinson wrote:
> why is it that sip tries to pass a 'const' object reference into a copy
> constructor? This is, in the first place, painful for class w/o copy
> constructors, it also leads one to a bit of confusion as to the correct way
> to add one in, or keep sip from generating that code.

SIP does that because (correct me if I am wrong) that's what C++ does if you 
don't specify your own copy ctor.

To prevent SIP doing it declare a private copy ctor in your .sip file. PyQt 
does this for every widget.

Phil

_______________________________________________
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