[Development] QProperty and library coding guide

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Sat Jul 18 12:17:11 CEST 2020


Il 17/07/20 19:36, Thiago Macieira ha scritto:
>> So in your example QSctpSocket would still be 24 bytes, because the
>> inheritance is not deep enough to make sizeof 32?
> Yes, with the IA-64 ABI, assuming we don't mandate [[no_unique_address]] of
> course.

Still, is it worth breaking ABI for sparing 8 bytes every 8 subclasses?


> With MSVC, it's 56 bytes.

Well, this can't be helped anyhow as MSVC doesn't support 
[[no_unique_address]], so the implementation is going to be the union, 
with the associated costs.

Thanks,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200718/5e7cde4c/attachment.bin>


More information about the Development mailing list