[C++0x] nullptr
Jason Merrill
jason@redhat.com
Mon May 3 05:43:00 GMT 2010
On 05/03/2010 01:05 AM, Ed Smith-Rowland wrote:
> In gcc we
> #define NULL __null.
> OTOH the committee thought about and ultimately rejected
> #define NULL nullptr
>
> Can/should we go ahead and do this since we sort of did it already?
No. NULL is defined to be an integer, which __null is and nullptr is
not; making that change would break code. Such code probably ought to
be broken, but it still isn't something I want to do just in G++.
> If we don't want to do this would it be a good idea to have a flag
> -fNULL=nullptr o somesuch?
NULL is defined by headers, not in the compiler. Try -DNULL=nullptr if
that's what you want?
Jason
More information about the Libstdc++
mailing list