aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/libcxx/include/__concepts/common_reference_with.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__concepts/common_reference_with.h')
-rw-r--r--contrib/llvm-project/libcxx/include/__concepts/common_reference_with.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/llvm-project/libcxx/include/__concepts/common_reference_with.h b/contrib/llvm-project/libcxx/include/__concepts/common_reference_with.h
index cc92762d3109..4eb687e071bc 100644
--- a/contrib/llvm-project/libcxx/include/__concepts/common_reference_with.h
+++ b/contrib/llvm-project/libcxx/include/__concepts/common_reference_with.h
@@ -20,17 +20,16 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-#if _LIBCPP_STD_VER > 17
+#if _LIBCPP_STD_VER >= 20
// [concept.commonref]
-template<class _Tp, class _Up>
+template <class _Tp, class _Up>
concept common_reference_with =
- same_as<common_reference_t<_Tp, _Up>, common_reference_t<_Up, _Tp>> &&
- convertible_to<_Tp, common_reference_t<_Tp, _Up>> &&
- convertible_to<_Up, common_reference_t<_Tp, _Up>>;
+ same_as<common_reference_t<_Tp, _Up>, common_reference_t<_Up, _Tp>> &&
+ convertible_to<_Tp, common_reference_t<_Tp, _Up>> && convertible_to<_Up, common_reference_t<_Tp, _Up>>;
-#endif // _LIBCPP_STD_VER > 17
+#endif // _LIBCPP_STD_VER >= 20
_LIBCPP_END_NAMESPACE_STD