
3 Jan
2012
3 Jan
'12
9:23 a.m.
Vicente J. Botet Escriba wrote:
I have added
#include <utility>
without success.
I guess that the standard library doesn't provides this function even if the compiler provides rvalue references.
Right. This kind of problem happens when a C++03 standard library is used with a C++11 compiler. Though I'm not confident that it's worth supporting, it is pretty easy to support it, since we are free to implement our own `forward` function. For example, we can use `boost::forward` in boost/move/move.hpp. Regards, Michel