[Development] Upgrading the sources to C++11 keywords (Q_NULLPTR, etc.)

Thiago Macieira thiago.macieira at intel.com
Fri Jan 9 22:53:24 CET 2015


On Friday 09 January 2015 22:15:25 Giuseppe D'Angelo wrote:
> On 9 January 2015 at 20:19, André Pönitz <apoenitz at t-online.de> wrote:
> > C++ 'nullptr' only gives a benefit over '0' in the rare cases where it
> > helps for disambiguation. I would not really like a policy encouraging
> > 'nullptr' when '0' is just fine, but at least that would be tolerable.
> 
> Not only that, compilers are starting to complain about 0 used in
> place of NULL / nullptr, for instance GCC under
> -Wzero-as-null-pointer-constant.

We may have to add that to headersclean, since conceivably our users may want 
to use it. But we don't have to turn it on for our sources.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list