[PATCH] libstdc++: Implement final wording of C++26 P3778R0 - type_order

Jakub Jelinek jakub@redhat.com
Mon Nov 10 06:25:59 GMT 2025


Hi!

The approved P3778R0 wording doesn't have type_order<_Tp, _Up>::type, so
this patch removes it.

Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

2025-11-10  Jakub Jelinek  <jakub@redhat.com>

	* libsupc++/compare: Implement final wording of C++26 P3778R0 - Fix
	for type_order template definition.
	(std::type_order): Remove type member.

--- libstdc++-v3/libsupc++/compare.jj	2025-09-02 16:52:09.435337136 +0200
+++ libstdc++-v3/libsupc++/compare	2025-11-08 08:31:23.827194690 +0100
@@ -1272,7 +1272,6 @@ namespace std _GLIBCXX_VISIBILITY(defaul
     {
       static constexpr strong_ordering value = __builtin_type_order(_Tp, _Up);
       using value_type = strong_ordering;
-      using type = type_order<_Tp, _Up>;
       constexpr operator value_type() const noexcept { return value; }
       constexpr value_type operator()() const noexcept { return value; }
     };

	Jakub



More information about the Libstdc++ mailing list