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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -