[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


Hi,

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

Regards,
Julien

> 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
09.72.52.52.76


More information about the PySide mailing list