c++ - Why not call nullptr NULL? -


in c++11 nullptr keyword added more type safe null pointer constant, since previous common definition of null 0 has problems.

why did standards committee choose not call new null pointer constant null, or declare null should #defined nullptr?

stephan t. lavavej (member of c++ standard committee) explained once in talk (55:35):

while implementation allowed #define null nullptr, break quite uses like

int = null; 

and apparently there plenty of those. not force change.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -