$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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