Last week I added
rvalue support to std::function
, so that you
can invoke it with move-only types such as
std::unique_ptr
. That will be included in the
GCC 4.5 release. Doug Gregor originally contributed the
<tr1/functional>
implementation that it's
based on and it's really cool stuff. I continue to be in awe
of Doug and the other authors of Boost.Function and Boost.Bind.
I'm still wrestling with std::bind