[libcxx-commits] [libcxx] [libc++] Implement comparison operators for `tuple` added in C++23 (PR #148799)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 18 23:48:23 PDT 2025


================
@@ -220,7 +220,9 @@ template <class... Types>
 #  include <__config>
 #  include <__cstddef/size_t.h>
 #  include <__fwd/array.h>
+#  include <__fwd/complex.h>
 #  include <__fwd/pair.h>
+#  include <__fwd/subrange.h>
----------------
frederick-vs-ja wrote:

The errors were about not founding `std::get` overloads for `complex` and `subrange`.

Now I think it's possibly reasonable to find all `std::get` overloads, as this can avoid some arcane errors caused by inclusion order ([example](https://godbolt.org/z/KqYYxEff5)). Although the example is harmful and shouldn't compile since C++23 (after implementing the whole P2165R4).

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


More information about the libcxx-commits mailing list