|
Boost : |
Subject: Re: [boost] [Interprocess] Compile error with VC10
From: cg (chengang31_at_[hidden])
Date: 2010-04-22 21:21:30
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk