[Interest] Creating a QVariant of QList<QObject*> knowing only the class name

Thiago Macieira thiago.macieira at intel.com
Thu Feb 23 09:00:10 CET 2017


On quarta-feira, 22 de fevereiro de 2017 15:37:16 PST Ch'Gans wrote:
> OK, I take it as "Undefined Behaviour", since you mentioned this above.
> As my code works, i'll keep it for now (not mission-critical)

That's what everyone who was affected by the compiler optimising away UB said, 
then they were forced to fix their code anyway. After their users reported 
problems, in code that had "worked" for some time.

Fix it now.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list