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 Tue, 2010-05-04 at 01:03 +0200, 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...

That is quite correct - I wanted to avoid including cstddef just for
that typedef.
Another issue is wether is better use a private typedef or
decltype(nullptr).

/MF


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