Created on 2020-02-07.00:00:00 last changed 45 months ago
Proposed resolution:
This wording is relative to N4849.
Modify [counted.iter.const] as indicated:
constexpr counted_iterator(I i, iter_difference_t<I> n);-1- Preconditions: n >= 0.
-2- Effects: Initializes current with std::move(i) and length with n.
[ 2020-02 Prioritized as IMMEDIATE Monday morning in Prague ]
P1207R4 ("Movability of single-pass iterators") introduces the notion of a move-only non-forward iterator and makes some changes to the iterator adaptor counted_iterator in order to support move-only iterators.
The problem is that the constructor of counted_iterator ([counted.iter.const] p2) accepting such an iterator is specified as "Initializes current with i" which would attempt copy-constructing current from i instead of move-constructing it.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: immediate -> wp |
2020-02-10 19:13:13 | admin | set | messages: + msg11024 |
2020-02-10 19:13:13 | admin | set | status: new -> immediate |
2020-02-08 14:25:02 | admin | set | messages: + msg10996 |
2020-02-07 00:00:00 | admin | create |