From d2baefae6846765eef6a6dd69d4fdf1082ce29ad Mon Sep 17 00:00:00 2001 From: Joe Loser Date: Sat, 12 Mar 2022 10:46:57 -0500 Subject: [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. All supported compilers that support C++20 now support concepts. So, remove `_LIB_LIBCPP_HAS_NO_CONCEPTS` in favor of `_LIBCPP_STD_VER > 17`. Similarly in the tests, remove `// UNSUPPORTED: libcpp-no-concepts`. Differential Revision: https://reviews.llvm.org/D121528 --- libcxx/include/tuple | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libcxx/include/tuple') diff --git a/libcxx/include/tuple b/libcxx/include/tuple index da5b8d4..ab1202d 100644 --- a/libcxx/include/tuple +++ b/libcxx/include/tuple @@ -1130,7 +1130,7 @@ public: void swap(tuple&) _NOEXCEPT {} }; -#if _LIBCPP_STD_VER > 20 && !defined(_LIBCPP_HAS_NO_CONCEPTS) +#if _LIBCPP_STD_VER > 20 template class _TQual, template class _UQual> requires requires { typename tuple, _UQual<_UTypes>>...>; } struct basic_common_reference, tuple<_UTypes...>, _TQual, _UQual> { @@ -1142,7 +1142,7 @@ template struct common_type, tuple<_UTypes...>> { using type = tuple...>; }; -#endif // _LIBCPP_STD_VER > 20 && !defined(_LIBCPP_HAS_NO_CONCEPTS) +#endif // _LIBCPP_STD_VER > 20 #if _LIBCPP_STD_VER > 14 template @@ -1347,7 +1347,7 @@ operator==(const tuple<_Tp...>& __x, const tuple<_Up...>& __y) return __tuple_equal()(__x, __y); } -#if !defined(_LIBCPP_HAS_NO_CONCEPTS) +#if _LIBCPP_STD_VER > 17 // operator<=> @@ -1369,7 +1369,7 @@ operator<=>(const tuple<_Tp...>& __x, const tuple<_Up...>& __y) return _VSTD::__tuple_compare_three_way(__x, __y, index_sequence_for<_Tp...>{}); } -#else // !defined(_LIBCPP_HAS_NO_CONCEPTS) +#else // _LIBCPP_STD_VER > 17 template inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 @@ -1439,7 +1439,7 @@ operator<=(const tuple<_Tp...>& __x, const tuple<_Up...>& __y) return !(__y < __x); } -#endif // !defined(_LIBCPP_HAS_NO_CONCEPTS) +#endif // _LIBCPP_STD_VER > 17 // tuple_cat -- cgit v1.1