Compiler version
Thiago Macieira
thiago at kde.org
Thu Jun 28 17:51:30 BST 2012
On quinta-feira, 28 de junho de 2012 18.09.22, Rolf Eike Beer wrote:
> Am Donnerstag, 28. Juni 2012, 10:20:42 schrieb Thiago Macieira:
> > On quinta-feira, 28 de junho de 2012 10.14.03, Ivan Cukic wrote:
> > > Well, nullptr is a compile time check, right (like explicit override)?
> > > So,
> > > you compile your code with a compiler that supports it, making your
> > > code
> > > safe in that aspect, while someone could still compile the code with an
> > > older compiler.
> >
> > Qt 5 has Q_NULLPTR that expands to nullptr on C++11 and 0 otherwise.
>
> Is there any chance that these macros will find their way into Qt4? I don't
> mean that they should be used by Qt itself everywhere (or at all), but
> providing them would allow an easy forward-compatible way of introducing
> this stuff. That may not really help for KDE (or we need to require 4.8.3
> or need to ship them ourself) but for other stuff out there this would be
> an improvement that you basically get for free.
There's no plan in backporting features.
But you can take Qt 5's qcompilerdetection.h's bottom part about C++11.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120628/f9b3fa15/attachment.sig>
More information about the kde-core-devel
mailing list