[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Compiler version
From: Thiago Macieira <thiago () kde ! org>
Date: 2012-06-28 16:51:30
Message-ID: 17193691.s5B1Smx1Ok () tjmaciei-mobl2
[Download RAW message or body]
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
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic