I want to pass an rvalue through std::bind to a function that takes an rvalue reference in C++0x. I can\'t figure out how to do it. For example:
std::bind
You could use a lambda expression.
auto f = [](){ foo(Movable()); };
This would seem to be the simplest option.