[Bug libstdc++/120446] [C++23] Implement P2655R3 common_reference_t of reference_wrapper Should Be a Reference Type
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 5 18:44:47 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120446
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:cbdbbdd1fccfd789e6fbcb37b1b602bb7482de4b
commit r16-5920-gcbdbbdd1fccfd789e6fbcb37b1b602bb7482de4b
Author: Patrick Palka <ppalka@redhat.com>
Date: Fri Dec 5 13:43:26 2025 -0500
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>
More information about the Gcc-bugs
mailing list