$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [lambda] delayed assignment to a member
From: Igor R (boost.lists_at_[hidden])
Date: 2009-10-29 13:16:11
Hello,
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.
Thanks.