implementation safe nullptr
I'd like to keep my code compilable both on legacy C++ (C++ code using "NULL") and new C++11 standard (C++ code using "nullptr") I'm using GCC, but planning to recompile the whole codebase also for VS when I'll finish most important things. Should I expect both GCC and VS will do something like #define NULL nullptr Or Is better I'll do that myself (using of course a different name, where MY_LIB will be replaced by my library suffix)? #ifndef nullptr #define MY_LIB_NULL NULL #else #define MY_LIB_NULL nullptr #endif What I want to achieve is code that compiles regardless of wich C++11 features