[libcxx-commits] [libcxx] [libc++][concepts] P2404R3: Move-only types for equality_comparable_with, totally_ordered_with, and three_way_comparable_with (PR #99420)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 18 18:16:32 PST 2025


================
@@ -1131,4 +1131,14 @@ static_assert(
     std::common_reference_with<one_way_ne const&, explicit_operators const&>);
 static_assert(
     !check_equality_comparable_with<one_way_ne, explicit_operators>());
+
+// P2404
+static_assert(check_equality_comparable_with<move_only_equality_with_int, int>());
+static_assert(check_equality_comparable_with<std::unique_ptr<int>, std::nullptr_t>());
+// TODO: Clang is broken, see https://github.com/llvm/llvm-project/issues/171438
+#ifdef TEST_COMPILER_CLANG
----------------
frederick-vs-ja wrote:

Looks like that we also need to work around Apple Clang. Also, now its preferred to use `https://llvm.org/PRNNNNNN` in comments.

https://github.com/llvm/llvm-project/pull/99420


More information about the libcxx-commits mailing list