[C++0x] nullptr

Magnus Fromreide magfr@lysator.liu.se
Fri Jun 4 23:33:00 GMT 2010


On Sat, 2010-06-05 at 00:51 +0200, Paolo Carlini wrote:
> Hi,
> 
> > It looks as if the nullptr code is buggy.
> >
> > With the attached patch it seems to work.
> 
> Added Jason in CC.

Thanks.

> If the patch is indeed correct - as far as I can  
> see, besides the testcases it's just a couple of one-liners

That's right - 2 one-liners.

> - the ChangeLog entries are missing...

For the one-liners:

Use null_ptr_cst_p instead of integer_zerop to check if an expression is
a null pointer constant.

For the tests:

Add tests for non-built-in nullptr_t variables.

/MF 



More information about the Libstdc++ mailing list