
26 May
2010
26 May
'10
11:46 a.m.
Hi, The following doesn't compiles. void fct(BOOST_RVALUE_REF(movable_only) mo, int x){...} ... movable_only m; boost::function<void()> f_one = boost::bind(&fct, boost::move(m), 1); Im not sure if the following is correct, boost::function<void()> f_one = boost::bind(&fct, boost::ref(boost::move(m)), 1); What is the correct way to use move semantics with Boost.Bind? Do we need some Boost.Bind adaptations? Best, Vicente P.S. The same question is valid for boost::lambda and boost::phoenix.