[Development] Qt LTS & C++11 plans
Marc Mutz
marc.mutz at kdab.com
Thu Jul 2 20:47:03 CEST 2015
On Thursday 02 July 2015 17:48:59 Thiago Macieira wrote:
> On Thursday 02 July 2015 10:44:14 Marc Mutz wrote:
> > D-pointers are not called Compiler Firewalls for nothing. Just compare
> > assembly generated from use of QColor (which doesn't even have a
> > d-pointer, but is mostly out-of-line anyway) with that generated for
> > QRgb.
>
> That's not a fair comparison. QRgb is not a class, it's a typedef to
> unsigned int.
It's equivalent to what a fully inline QColorRGB(A)8 should compile to, modulo
compiler bugs.
If you don't like the comparision to QRgb, s/QRgb/QRgba64/, which _is_ a
class.
Thanks,
Marc
--
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts
More information about the Development
mailing list