[Development] Passing QSize, QPoint, QTime and other small structs by value
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Fri Apr 7 19:10:38 CEST 2017
Il 07/04/2017 17:45, Thiago Macieira ha scritto:
> We're not talking about primitives. We're talking about structs that are very
> small and trivial. See for yourself:
>
> https://godbolt.org/g/pvwjWE
>
> Direct primitive passing is fine:
>
> https://godbolt.org/g/Ghj8US
Sorry, what do you mean "is fine"? What's not fine?
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20170407/6c8542ac/attachment.bin>
More information about the Development
mailing list