[PyQt] Copy constructors and assignment operator
phil at riverbankcomputing.com
Sun Jun 14 14:40:25 BST 2009
On Sun, 14 Jun 2009 15:27:18 +0200, Simon Edwards <simon at simonzone.com>
> Phil Thompson wrote:
>> On Sat, 13 Jun 2009 16:04:35 +0200, Arve Knudsen
<arve.knudsen at gmail.com>
>>> Phil, can you please explain why SIP 4.8 makes use of the assignment
>>> operator when wrapping a class' copy constructor?
>> It doesn't as far as I know.
>>> We have a couple of
>>> classes that expose a copy constructor, but not the assignment operator
>>> the SIP generated wrappers no longer compile with 4.8 (4.7.x worked),
>>> the assignment operator is referenced.
>> An assignment helper is (sometimes) generated which does assume that
>> is an assignment operator if there is a public copy ctor. I can change
>> to allow you to explicitly define a private assignment operator if this
>> not the case.
> I seem to be hitting this problem too.
It's fixed in the current SIP snapshot - just define a private assignment
More information about the PyQt