diff options
-rw-r--r-- | libcxx/include/type_traits | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits index 2b14160bedd..ad32376b666 100644 --- a/libcxx/include/type_traits +++ b/libcxx/include/type_traits @@ -1095,8 +1095,11 @@ template <class _Tp> using add_rvalue_reference_t = typename add_rvalue_referenc #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES +template <class _Tp> _Tp&& __declval(int); +template <class _Tp> _Tp __declval(long); + template <class _Tp> -typename add_rvalue_reference<_Tp>::type +decltype(_VSTD::__declval<_Tp>(0)) declval() _NOEXCEPT; #else // _LIBCPP_HAS_NO_RVALUE_REFERENCES |