diff options
author | Tomasz Kamiński <tkaminsk@redhat.com> | 2025-03-07 11:54:38 +0100 |
---|---|---|
committer | Tomasz Kamiński <tkaminsk@redhat.com> | 2025-03-14 14:28:29 +0100 |
commit | 5abe571e0276fafcc6eed27c27abb28943e67c6f (patch) | |
tree | 9119ffff9b27d6cb75fa3d5c9d4a15314e2faf18 /gcc/rust/util | |
parent | b673d7b593f63a526a85d56204f1217bc4fbf6a1 (diff) | |
download | gcc-5abe571e0276fafcc6eed27c27abb28943e67c6f.zip gcc-5abe571e0276fafcc6eed27c27abb28943e67c6f.tar.gz gcc-5abe571e0276fafcc6eed27c27abb28943e67c6f.tar.bz2 |
libstdc++: Fix views::zip_transform constraints for empty range pack [PR111138]
Add missing move_constructible && regular_invocable constrains on functor type,
and is_object on functor result type for invocations of views::zip_transform
without range arguments.
PR libstdc++/111138
libstdc++-v3/ChangeLog:
* include/std/ranges (_ZipTransform::operator()):
Create separate overload for calls with empty range pack,
and add move_constructible, regular_invocable and
is_object_v<invoke_result_t<...>>> constraints.
* testsuite/std/ranges/zip_transform/1.cc: New tests
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Tomasz Kamiński <tkaminsk@redhat.com>
Diffstat (limited to 'gcc/rust/util')
0 files changed, 0 insertions, 0 deletions