Created on 2022-09-12.00:00:00 last changed 12 months ago
Proposed resolution:
This wording is relative to N4910.
Modify [range.zip.transform.overview] as indicated:
-2- The name views::zip_transform denotes a customization point object ([customization.point.object]). Let F be a subexpression, and let Es... be a pack of subexpressions.
(2.1) — If Es is an empty pack, let FD be decay_t<decltype((F))>.
(2.1.1) — If move_constructible
copy_constructible<FD> && regular_invocable<FD&> is false, or if decay_t<invoke_result_t<FD&>> is not an object type, views::zip_transform(F, Es...) is ill-formed.(2.1.2) — Otherwise, the expression views::zip_transform(F, Es...) is expression-equivalent to
((void)F, auto(views::empty<decay_t<invoke_result_t<FD&>>>))(2.2) — Otherwise, the expression views::zip_transform(F, Es...) is expression-equivalent to zip_transform_view(F, Es...).
[ 2022-11-12 Approved at November 2022 meeting in Kona. Status changed: Voting → WP. ]
[ 2022-09-23; Reflector poll ]
Set status to Tentatively Ready after seven votes in favour during reflector poll.
After P2494R2, range adaptors only require callable to be move_constructible, however, for views::zip_transform, when empty pack, it still requires callable to be copy_constructible. We should relax this requirement, too.
History | |||
---|---|---|---|
Date | User | Action | Args |
2023-11-22 15:47:43 | admin | set | status: wp -> c++23 |
2022-11-17 00:42:33 | admin | set | messages: + msg13074 |
2022-11-17 00:42:33 | admin | set | status: voting -> wp |
2022-11-08 03:46:49 | admin | set | status: ready -> voting |
2022-09-23 15:43:32 | admin | set | messages: + msg12792 |
2022-09-23 15:43:32 | admin | set | status: new -> ready |
2022-09-12 10:22:40 | admin | set | messages: + msg12761 |
2022-09-12 00:00:00 | admin | create |