[Qt-interest] Detecting size of datatype with qmake

Esben Mose Hansen kde at mosehansen.dk
Sun May 16 11:42:43 CEST 2010


On Sunday 16 May 2010 11:06:04 Kustaa Nyholm wrote:
> And if the advice indeed makes practical sense then it is a sad testimony
> to the the state of world of C/C++ that in 2010 you need to steer clear of
> standard compiler /library features that are supposed to be a decade old.

Well, if you can dig up a pure C++ compiler that does not support (plain) C99, 
and at the same time refuses to provide headers that is not part of the 
standard yet, you might have a candidate. Or if you want to support quite 
ancient compilers for some reason. I am no expert in this, as I tend to use 
gcc on all platforms.

If push came to shove, it would be rather trivial to provide the header 
yourself on some platform, or use boost's implementation if you prefer.

Of course, if your application or library is married to Qt, and if the types 
Qt provide suffice, there is little reason to not use the Qt types. If your 
application or library might someday want to not use Qt, it is probably better 
to go the standards way.

-- 
Kind regards, Esben



More information about the Qt-interest-old mailing list