[C++0x] nullptr

Paolo Carlini paolo.carlini@oracle.com
Sun May 30 10:26:00 GMT 2010


On 05/14/2010 12:38 PM, Paolo Carlini wrote:
>>> Jonathan, now that the front-end changes are in and pretty solid after
>>> the last patch from Jason, are you willing to tweak and apply the
>>> library changes?
>>>     
>>>       
>> Sure, I'll take care of it.
>>   
>>     
> Great!
>   
... Jon --

unless you have some other special plan, I would suggest defining the
std::__nullptr_t typedef in c++config (of course conditional to
__GXX_EXPERIMENTAL_CXX0X__), then cstddef, functional, shared_ptr,
unique_ptr, whatever else, can automatically use it as an implementation
detail. That would be consistent with the way I'm going to avoid
including <cstddef> as an implementation detail in the headers: I mean
to add typedefs of the form:

namespace std
{
    typedef __SIZE_TYPE__ size_t;
    typedef __PTRDIFF_TYPE__ ptrdiff_t;
  ...
}

to c++config.

Paolo.



More information about the Libstdc++ mailing list