Created on 2022-06-10.00:00:00 last changed 12 months ago
Proposed resolution:
This wording is relative to N4910.
Modify [range.slide.view] as indicated:
constexpr explicit slide_view(V base, range_difference_t<V> n);-?- Preconditions: n > 0 is true.
-1- Effects: Initializes base_ with std::move(base) and n_ with n.
[ 2022-07-25 Approved at July 2022 virtual plenary. Status changed: Ready → WP. ]
[ 2022-07-15; LWG telecon: move to Ready ]
[ 2022-06-21; Reflector poll ]
Set status to Tentatively Ready after six votes in favour during reflector poll.
It doesn't make sense for slide_view when n is not positive, we should therefore add a precondition for its constructor just like we did for chunk_view.
Daniel: Indeed the accepted paper describes the intention in P2442R1 Section 4.2 by saying that "It is a precondition that N is positive" in the design wording but omitted to add a normative precondition in the proposed wording.History | |||
---|---|---|---|
Date | User | Action | Args |
2023-11-22 15:47:43 | admin | set | status: wp -> c++23 |
2022-07-25 20:32:58 | admin | set | messages: + msg12652 |
2022-07-25 20:32:58 | admin | set | status: ready -> wp |
2022-07-25 20:28:19 | admin | set | messages: + msg12626 |
2022-06-21 11:47:28 | admin | set | messages: + msg12522 |
2022-06-21 11:47:28 | admin | set | status: new -> ready |
2022-06-11 15:37:36 | admin | set | messages: + msg12493 |
2022-06-10 00:00:00 | admin | create |