
23 Apr
2010
23 Apr
'10
1:21 a.m.
On 4/23/2010 7:07 AM, Ion GaztaƱaga wrote:
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.
Yes, this fixes it. And VC10 has std::move and std::forward. Thanks