|
Boost Users : |
Subject: Re: [Boost-users] [boost-users][bind, lambda] delayed assignment
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-01 21:18:23
AMDG
Igor R wrote:
> I'd like to bild on-the-fly functor that would do something like:
>
> a_ = 1, b_ = 2; // a_, b_ - members
>
> But the assignment should be delayed until the functor is invoked.
> How can I do this with bind/lamda?
>
Using lambda:
boost::lambda::var(a_) = 1, boost::lambda::var(b_) = 2
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