[Bug libstdc++/110356] [C++26] P2637R3 Member visit
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 31 16:08:18 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110356
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:f6f2c78d9db37228baa9d1f9926b0c120e24016f
commit r15-2447-gf6f2c78d9db37228baa9d1f9926b0c120e24016f
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Jul 9 12:12:56 2024 +0100
libstdc++: Define C++26 member visit for std::variant [PR110356]
Implement the std::variant changes from P2637R3.
libstdc++-v3/ChangeLog:
PR libstdc++/110356
* include/bits/version.def (variant): Update for C++26.
* include/bits/version.h: Regenerate.
* include/std/variant (variant::visit): New member functions.
* testsuite/20_util/variant/visit.cc: Check second alternative.
* testsuite/20_util/variant/visit_member.cc: New test.
More information about the Gcc-bugs
mailing list