News for hackers. Stuff that matters.
Re:C++ 11 Approved by Someone on Saturday August 13, 2011 @09:23AM (#2880920)
The standard example is:

    void f(int x);
    void f(char *x);
    ...
    f(0);  // calls void f(int)
That may seem contrived, but you may not know of the f(int) overload, especially in combination with templates.

NULL, if #define'd as (void *)0, prevents that error.

Re:C++ 11 Approved by pmjordan on Saturday August 13, 2011 @06:03PM (#2882117)
NULL is actually #defined to 0 in C++ as void* is not implicitly convertible to any pointer type as it is in C. So unlike in C there has been no safety in using NULL. Until now.