[Qt-interest] On overriding qMalloc in QVector

Benoit Jacob jacob.benoit.1 at gmail.com
Fri Oct 23 01:11:39 CEST 2009


2009/10/22 Thiago Macieira <thiago at kde.org>:
> Em Quinta-feira 22. Outubro 2009, às 21.49.25, Benoit Jacob escreveu:
>> Sure that logic seems correct, but i don't understand, how do you get
>> the type alignment? Some compiler extensions? The alignof keyword is
>> only coming in c++1x...
>
> Many compilers already have that keyword. Search for Q_ALIGNOF in qglobal.h.

Indeed, I didn't know, it seems like gcc has it since 2.95!

I guess that i was confused as on the other hand alignas is only
coming in c++1x.

Thanks,
Benoit




More information about the Qt-interest-old mailing list