Boost logo

Boost :

Subject: Re: [boost] [config] Macro for null pointer
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2012-11-28 11:36:34


On Wed, Nov 28, 2012 at 8:33 AM, Jeffrey Lee Hellrung, Jr. <
jeffrey.hellrung_at_[hidden]> wrote:

> On Tue, Nov 27, 2012 at 11:05 PM, Andrey Semashev <
> andrey.semashev_at_[hidden]> wrote:
>
>> On Wed, Nov 28, 2012 at 3:35 AM, Jeffrey Lee Hellrung, Jr.
>> <jeffrey.hellrung_at_[hidden]> wrote:
>>
> [...]

> > private:
> > struct _boost_explicit_operator_bool_struct { };
> > typedef int
> >
> (_boost_explicit_operator_bool_struct::*_boost_explicit_operator_bool_result_type);
> > public:
> > operator _boost_explicit_operator_bool_result_type () const { return
> 0; }
>

I guess this could be simplified slightly with just

typedef (nullptr_t::*_boost_explicit_operator_bool_result_type);

----
And by that, I mean
typedef int (nullptr_t::*_boost_explicit_operator_bool_result_type);
- Jeff

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk