On Fri, Feb 26, 2010 at 4:00 AM, Rutger ter Borg
<rutger@terborg.net> wrote:
Zachary Turner wrote:
>
> You lose the ability
>
> a) To use a function *object* which contains state
>
Is this correct? Isn't, e.g., a bind expression already a function object
that contains state? Or do you mean that you loose the ability to access the
state of such a function object?
Thanks,
Cheers,
Yes, I meant accessing the state of such a function object. With arbitrary functors you can provide arbitrary state that can be modified by operator() of the visitor. After the call to apply_visitor(), you can access this state.
Zach