]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Implement final wording of C++26 P3778R0 - type_order
authorJakub Jelinek <jakub@redhat.com>
Mon, 10 Nov 2025 08:59:13 +0000 (09:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 10 Nov 2025 08:59:13 +0000 (09:59 +0100)
The approved P3778R0 wording doesn't have type_order<_Tp, _Up>::type, so
this patch removes it.

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

index 7e3ad830803e7c67f3539c25f453c44fcf2045f4..458b47c3fcabe4bdf0bf45e7d5c40d8e49d7e7dd 100644 (file)
@@ -1272,7 +1272,6 @@ namespace std _GLIBCXX_VISIBILITY(default)
     {
       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; }
     };