Created on 2019-09-10.00:00:00 last changed 45 months ago
Proposed resolution:
This wording is relative to N4830.
Modify [iterator.concept.random.access] as indicated:
-2- Let a and b be valid iterators of type I such that b is reachable from a after n applications of ++a, let D be iter_difference_t<I>, and let n denote a value of type D. I models random_access_iterator only if:
(2.1) — (a += n) is equal to b.
[…]
(2.7) — (b += D(-n)) is equal to a.
[…]
[ 2019-10-12 Issue Prioritization ]
Status to Tentatively Ready and priority to 0 after five positive votes on the reflector.
[iterator.concept.random.access]/p2.7 says:
(b += -n) is equal to a
Unary minus can do integer promotion. That is not the intent here.
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 |
2019-10-12 11:33:15 | admin | set | messages: + msg10695 |
2019-10-12 11:33:15 | admin | set | status: new -> ready |
2019-09-16 19:24:35 | admin | set | messages: + msg10639 |
2019-09-10 00:00:00 | admin | create |