Boost logo

Boost Users :

Subject: Re: [Boost-users] [variant] Variant call forwarding?
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2010-02-26 17:16:38


On Fri, Feb 26, 2010 at 4:00 AM, Rutger ter Borg <rutger_at_[hidden]> 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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net