[gcc r16-5111] libstdc++: Implement final wording of C++26 P3778R0 - type_order

Jakub Jelinek jakub@gcc.gnu.org
Mon Nov 10 09:00:20 GMT 2025


https://gcc.gnu.org/g:52fc9f01da295f92ed8d5139b102b9c517d1c9ae

commit r16-5111-g52fc9f01da295f92ed8d5139b102b9c517d1c9ae
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Nov 10 09:59:13 2025 +0100

    libstdc++: Implement final wording of C++26 P3778R0 - type_order
    
    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.

Diff:
---
 libstdc++-v3/libsupc++/compare | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libstdc++-v3/libsupc++/compare b/libstdc++-v3/libsupc++/compare
index 7e3ad830803e..458b47c3fcab 100644
--- a/libstdc++-v3/libsupc++/compare
+++ b/libstdc++-v3/libsupc++/compare
@@ -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; }
     };


More information about the Libstdc++-cvs mailing list