
On Thu, Apr 22, 2010 at 6:21 PM, cg <chengang31@gmail.com> wrote:
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
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
That warning isn't ignorable and will break people on 4.3/4.4. Like I mentioned in my previous mail, you should just use std::move.