|
Boost Users : |
Subject: Re: [Boost-users] [lambda] delayed assignment to a member
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-29 13:23:35
AMDG
Igor R wrote:
> How can I create a functor, which would assign to a member variable,
> when invoked? I mean, something like this:
>
> int member_;
> //...
>
> lambda::bind(my_obj::member_, this, 5);
>
> The above bind itself compiles, but if I try to invoke it or to assign
> to a function<void()>, it doesn't compile.
>
(lambda::var(member_) = 5)
In Christ,
Steven Watanabe
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