[C++0x] nullptr
Magnus Fromreide
magfr@lysator.liu.se
Fri Jun 4 22:13:00 GMT 2010
On Thu, 2010-06-03 at 02:06 +0100, Jonathan Wakely wrote:
> On 30 May 2010 11:32, Paolo Carlini wrote:
> > ... oops, as a matter of fact you can as well directly define in
> > c++config std::nullptr_t, instead of std::__nullptr_t, in complete
> > analogy with the other stddef typedefs and be done with it. Sorry, I was
> > following a previous version of my ideas ;)
>
> I've done that but am working on applying the other library changes -
> the shared_ptr parts needed some work and I'm getting an ICE and
> errors about not being able to convert nullptr_t to int*, which seems
> wrong. I'm still trying to reduce the problem or figure out what I'm
> doing wrong.
>
> Will update soon ...
It looks as if the nullptr code is buggy.
With the attached patch it seems to work.
/MF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nullptr-bug.diff
Type: text/x-patch
Size: 11584 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100604/213663c5/attachment.bin>
More information about the Libstdc++
mailing list