[libcxx-commits] [libcxx] [libc++] Extend __default_three_way_comparator to any types that only implements operator<=> (PR #157602)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 9 05:10:03 PDT 2025
================
@@ -2521,6 +2521,7 @@ _LIBCPP_STRING_V1_EXTERN_TEMPLATE_LIST(_LIBCPP_DECLARE, wchar_t)
# endif
# undef _LIBCPP_DECLARE
+# if _LIBCPP_STD_VER <= 17 || !__has_builtin(__builtin_lt_synthesises_from_spaceship)
----------------
ldionne wrote:
It's nice that the builtin basically removes the need for this special case.
https://github.com/llvm/llvm-project/pull/157602
More information about the libcxx-commits
mailing list