diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits index 924a60261c52..5911c0390144 100644 --- a/libcxx/include/type_traits +++ b/libcxx/include/type_traits @@ -1318,6 +1318,18 @@ move(_Tp& __t) return __t; } +template +inline _LIBCPP_INLINE_VISIBILITY +typename enable_if +< + !is_convertible<_Tp, __rv<_Tp> >::value, + const _Tp& +>::type +move(const _Tp& __t) +{ + return __t; +} + template inline _LIBCPP_INLINE_VISIBILITY typename enable_if