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.dang...@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
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development