SIP v4.19.23 adds dependency on assignment operator

Phil Thompson phil at riverbankcomputing.com
Fri Jun 26 14:46:40 BST 2020


On 26/06/2020 14:19, Jochen Sprickerhof wrote:
> Hi,
> 
> There is a regression in SIP v4.19.23 breaking orocos-kdl:
> 
> https://github.com/orocos/orocos_kinematics_dynamics/issues/260
> 
> As far as I understand in
> 
> https://www.riverbankcomputing.com/hg/sip/rev/22ababb6d14a#l3.63
> 
> setCopyHelper() is generated if there is a public copy constructor. In
> addition it is assumed that a valid assignment operator exists as
> well, as stated here:
> 
> https://www.riverbankcomputing.com/hg/sip/rev/22ababb6d14a#l1.48
> 
> This is not the case for a lot of classes in orocos-kdl because they
> have a reference as a member and so the default assignment operator is
> deleted.

So you need to tell SIP this by defining a private assignment operator.

Phil


More information about the PyQt mailing list