[boost-users][bind, lambda] delayed assignment

1 Apr
2009
1 Apr
'09
6:47 p.m.
Hello, 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? Thanks!

2 Apr
2 Apr
1:18 a.m.
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
5861
Age (days ago)
5862
Last active (days ago)
1 comments
2 participants
participants (2)
-
Igor R
-
Steven Watanabe