Skip to content

Instantly share code, notes, and snippets.

@acmorrow
Created February 5, 2013 19:39
Show Gist options
  • Save acmorrow/4717006 to your computer and use it in GitHub Desktop.
Save acmorrow/4717006 to your computer and use it in GitHub Desktop.
// C++11 has a well defined NULL, now called nullptr, of type nullptr_t:
void f(char *);
void f(int);
foo(NULL); // OOPS: calls f(int)
foo(nullptr); // calls f(char *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment