Created on 2019-09-13.00:00:00 last changed 46 months ago
Proposed resolution:
This wording is relative to N4830.
Modify [range.iota.view] as indicated:
namespace std::ranges { […] template<weakly_incrementable W, semiregular Bound = unreachable_sentinel_t> requires weakly-equality-comparable-with<W, Bound> && semiregular<W> class iota_view : public view_interface<iota_view<W, Bound> { […] }; […] }
[ Status to ready after discussion Friday morning in Belfast ]
P1207R4 changed weakly_incrementable from requiring semiregular to requiring default_constructible && movable.
iota_view currently is specified to require that W be just weakly_incrementable. But we have to copy the W from the view into its iterator and also in operator*() to return a W. The shortest resolution is just to add " && semiregular<W>" to the class constraints.History | |||
---|---|---|---|
Date | User | Action | Args |
2021-02-25 10:48:01 | admin | set | status: wp -> c++20 |
2020-02-24 16:02:59 | admin | set | status: voting -> wp |
2020-01-17 04:54:50 | admin | set | status: ready -> voting |
2020-01-05 16:32:39 | admin | set | messages: + msg10914 |
2020-01-05 16:32:39 | admin | set | status: new -> ready |
2019-09-18 18:15:09 | admin | set | messages: + msg10655 |
2019-09-13 00:00:00 | admin | create |