Provide a move(const T&) overload for C++03 mode to enable moving from rvalues. This is to support proxy references. Fixes r10858112. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@150488 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/type_traits b/include/type_traits index 924a602..5911c03 100644 --- a/include/type_traits +++ b/include/type_traits
@@ -1322,6 +1322,18 @@ inline _LIBCPP_INLINE_VISIBILITY typename enable_if < + !is_convertible<_Tp, __rv<_Tp> >::value, + const _Tp& +>::type +move(const _Tp& __t) +{ + return __t; +} + +template <class _Tp> +inline _LIBCPP_INLINE_VISIBILITY +typename enable_if +< is_convertible<_Tp, __rv<_Tp> >::value, _Tp >::type