[PySide] Compile error with method taking a reference to an value-type

Julien Cabieces julien.cabieces at oslandia.com
Mon Sep 11 13:32:57 CEST 2023


Thank you for your answer. Indeed B should take A as const ref, and it
fixes generation.


> Hi,
> I am not sure under what circumstances this is generated, but B's
> constructor should take A by const ref (if at all, given that A is
> part of a class hierarchy and not a value type, so, slicing may occur,
> etc etc.).
> Regards, Friedemann


Julien Cabieces
Senior Developer at Oslandia
julien.cabieces at oslandia.com

More information about the PySide mailing list