Boost logo

Boost :

Subject: Re: [boost] phoenix::bind
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-10-02 10:04:20


> Joel de Guzman:
>
>> Maybe you want:
>>
>> let(_a = 0)[ ++_a ]
>
> Maybe I do. :-)

No, I don't. This compiles, but always returns 1 when invoked. I want the
equivalent of:

struct _F
{
    int _a;

    _F(): _a( 0 ) {}

    int operator()() { return ++_a; }
};


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