Can nullptr be emulated in gcc?
Posted
by nuzz
on Stack Overflow
See other posts from Stack Overflow
or by nuzz
Published on 2010-03-10T19:15:37Z
Indexed on
2010/03/12
14:07 UTC
Read the original article
Hit count: 304
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).
© Stack Overflow or respective owner