Boost logo

Boost :

Subject: Re: [boost] [config] Macro for null pointer
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-11-17 04:55:09

Le 16/11/12 13:55, Antony Polukhin a écrit :
> 2012/11/16 Vicente Botet <vicente.botet_at_[hidden]>:
>> Why a library will need a type nullptr_t while there is only a constant in
>> C++11? Please coul you elaborate?
> According to draft of C++11 (I have no final version):
> Pointer literals [lex.nullptr]
> pointer-literal:nullptr
> The pointer literal is the keyword `nullptr`. It is a prvalue of type
> `std::nullptr_t`. [ Note: `std::nullptr_t`
> is a distinct type that is neither a pointer type nor a pointer to
> member type; rather, a prvalue of this type is
> a null pointer constant and can be converted to a null pointer value
> or null member pointer value.
Oh, I see it now.


Boost list run by bdawes at, gregod at, cpdaniel at, john at