Boost logo

Boost :

From: Korcan Hussein (korcan_h_at_[hidden])
Date: 2008-02-20 11:02:15


Daniel Wallin wrote:
> Korcan Hussein wrote:
>> > Steven Watanabe wrote:
>>> This creates a function object that executes:
>>>
>>> Fn(Fn(Fn(g())))
>>>
>>> Since the inner functions return void, of course it fails.
>>>
>> Oops, this isn't exactly what i'm trying to achieve, i just want
>> bind/pass but not evalute.
>
> You need to use `protect()` to prevent bind() from eagerly evaluating
> nested binds. See: http://www.boost.org/libs/bind/bind.html#nested_binds
>

I was looking for something like this, great thanks a lot.


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