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
(but obviously that wouldn't work well at all, I was simply showing what I meant).