diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-03-25 00:27:52 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-03-25 17:44:25 +0000 |
commit | 479a0a8644e5efa0470f032be21ca7749968af42 (patch) | |
tree | d2005d20d4abdea5a458d8d9d145274e2f31b3cc /gcc | |
parent | e200f53a5556516ec831e6b7a34aaa0f10a4ab0a (diff) | |
download | gcc-479a0a8644e5efa0470f032be21ca7749968af42.zip gcc-479a0a8644e5efa0470f032be21ca7749968af42.tar.gz gcc-479a0a8644e5efa0470f032be21ca7749968af42.tar.bz2 |
libstdc++: Allow std::ranges::to to create unions
LWG 4229 points out that the std::ranges::to wording refers to class
types, but I added an assertion using std::is_class_v which only allows
non-union class types. LWG consensus is that unions should be allowed,
so this additionally uses std::is_union_v.
libstdc++-v3/ChangeLog:
* include/std/ranges (ranges::to): Allow unions as well as
non-union class types.
* testsuite/std/ranges/conv/lwg4229.cc: New test.
Reviewed-by: Tomasz KamiĆski <tkaminsk@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions