]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Consolidate bullet 1 __common_reference_impl partial specs
authorPatrick Palka <ppalka@redhat.com>
Fri, 5 Dec 2025 18:43:26 +0000 (13:43 -0500)
committerPatrick Palka <ppalka@redhat.com>
Fri, 5 Dec 2025 18:43:26 +0000 (13:43 -0500)
commitcbdbbdd1fccfd789e6fbcb37b1b602bb7482de4b
tree53a53ade4afc4c7e2346ede8fa4d72ccfc497b56
parent5d5eeb3709e7befdeec5e11d03530bd282235d89
libstdc++: Consolidate bullet 1 __common_reference_impl partial specs

... and in passing use requires-clauses instead of void_t based SFINAE.
This is a non-functional change that'll simplify implementing the
P2655R3 change to common_reference.

PR c++/120446

libstdc++-v3/ChangeLog:

* include/std/type_traits (__common_reference_impl): Rewrite
partial specializations to use requires-clause instead of
an additional void_t template parameter.  Consolidate the
partial specializations corresponding to bullet 1.

Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/std/type_traits