Boost logo

Boost Users :

Subject: [Boost-users] [boost-users][bind, lambda] delayed assignment
From: Igor R (boost.lists_at_[hidden])
Date: 2009-04-01 14:47:49


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!


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