C++11: nullptr

In C and C++ we use the preprocessor macro NULL to say a pointer is not pointing to anywhere right now. The problem with NULL is that underneath it is just a plain 0. Consider the problem looking at this code excerpt: If you try to compile it using g++ 4.6, you will get something… Continue reading C++11: nullptr

Advertisements