I saw that nullptr
was implemented in Visual Studio 2010. I like the concept and want to start using it as soon as possible; however GCC does not support it yet. My code needs to run on both (but doesn't have to compile with other compilers).
Is there a way to "emulate" it? Something like:
#define nullptr NULL
(That obviously wouldn't work well at all, it's just to show what I mean.)
See Question&Answers more detail:os