
22 Apr
2010
22 Apr
'10
11:07 p.m.
On 22/04/2010 15:57, cg wrote:
I think VC10 should activate rvalue reference by default. And I have tried to compile the code with and without BOOST_HAS_RVALUE_REFS defined, but got the same error.
Can you find the definition of std::move and std::forward in the standard library of Visual 2010? I know it changed between beta and the release. I think changing the definition of move to template <class T> inline typename remove_reference<T>::type&& move(T&& t) { return static_cast<remove_reference<T>::type&&>(t); } should work. This approach provokes a warning in the old gcc-4.3 approach ("returning reference to temporary"), but it should be a quick solution for you. Best, Ion