[C++0x] nullptr

Jonathan Wakely jwakely.gcc@gmail.com
Mon May 3 23:47:00 GMT 2010


On 4 May 2010 00:03, Paolo Carlini wrote:
> On 05/03/2010 11:55 PM, Benjamin Kosnik wrote:
>> ...yeah, I don't understand why nullptr_t as defined in cstddef isn't
>> just being used instead of using the (oft-repeated) __nullptr_t type.
>>
>> This applies to shared_ptr/unique_ptr/functional.
>>
> That's another issue, I think: it's about avoiding including the whole
> cstddef only for that. Indeed, lately - Martin, if I remember correctly
> - pointed out in a DR that essentially *all* the headers can avoid
> including cstddef, and Magnus' patch goes in that direction...

Another issue is how we ensure ::nullptr_t is declared in <stddef.h>
but maybe that will need libc help.



More information about the Libstdc++ mailing list