[Qt-creator] C++11 in Creator's source: Update required features

Cristian Tibirna tibirna at kde.org
Mon Mar 30 17:43:04 CEST 2015


On Monday 30 March 2015 17:32:29 Daniel Teske wrote:

> - You can use nullptr, but
> Note: There was no consensus to ban nor to recommend them, but the majority
> didn't think nullptr brings a benefit, so individually maintainers might
> object to usage of nullptr.

If I understood correctly (I didn't recheck since long) the major feature of 
null pointer is being able to say

int* a {nullptr};

but not

int* a {0}; // implicit conversion not allowed with {} initialisation

and thus the disambiguation possible in automatic type detection situations 
(overloaded function calls).

Whether there is any use of this is heavily code-base dependent, I guess.

-- 
Cristian Tibirna
KDE developer .. tibirna at kde.org .. http://www.kde.org



More information about the Qt-creator mailing list