[PATCH] libstdc++: Implement final wording of C++26 P3778R0 - type_order
Jonathan Wakely
jwakely.gcc@gmail.com
Mon Nov 10 07:15:44 GMT 2025
On Mon, 10 Nov 2025, 06:26 Jakub Jelinek, <jakub@redhat.com> wrote:
> 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?
>
OK, thanks
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20251110/aba66fbe/attachment.htm>
More information about the Libstdc++
mailing list