[Qt-interest] Detecting size of datatype with qmake

Thiago Macieira thiago at kde.org
Sun May 16 11:40:42 CEST 2010


Em Domingo 16. Maio 2010, às 11.06.04, Kustaa Nyholm escreveu:
> >> http://en.wikipedia.org/wiki/Stdint.h
> >> 
> >> which provides much the same. Technically, these might not be available
> >> for a C++93-compiler, but I doubt you'll find any.
> >
> >Don't use it.
> 
> Isn't that a bit sweeping and strong statement? Even if Qt  wants to/needs
> to support all possible compilers  not everyone is int the same boat.
> 
> 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.

No, you misread it.

You can use all the features of C++98 and C++03, as much as you want. And when 
your compiler supports C++0x, you can and should use that.

What you can't do is use C99. That's a different language. Using C99 in C++ 
programs is an extension at best, in any compiler. You're in uncharted 
territories when you do that.

If it works for you, great. Just don't expect it to work for anyone else with 
a different setup.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100516/c73d0208/attachment.bin 


More information about the Qt-interest-old mailing list