This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [C++0x] nullptr
On Mon, 2010-05-03 at 08:08 +0200, Magnus Fromreide wrote:
> On Mon, 2010-05-03 at 01:43 -0400, Jason Merrill wrote:
> > On 05/03/2010 01:05 AM, Ed Smith-Rowland wrote:
> > > 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?
>
> And to mess things up further there is library issue 1314 (
> http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2010/n3054.html#1314 )
And now I found the committee rationale to reject it in R70:
> The LWG discussed the proposed resolution and several other options.
> There was no concensus to make this or any other changes.
My thinking is that Jason is right here. Use -DNULL=nullptr.
/MF