This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++0x] nullptr


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]