[PyQt] Copy constructors and assignment operator

Phil Thompson phil at riverbankcomputing.com
Sat Jun 13 15:27:26 BST 2009


On Sat, 13 Jun 2009 16:04:35 +0200, Arve Knudsen <arve.knudsen at gmail.com>
wrote:
> 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
and
> the SIP generated wrappers no longer compile with 4.8 (4.7.x worked),
since
> the assignment operator is referenced.

An assignment helper is (sometimes) generated which does assume that there
is an assignment operator if there is a public copy ctor. I can change it
to allow you to explicitly define a private assignment operator if this is
not the case.

Phil


More information about the PyQt mailing list