This started as an attempt to fix a GCC 11 warning of misplaced parentheses. I then noticed that trying to fix the parentheses warning actually triggered errors in the tests, showing that we were incorrectly assuming that the implementation of ranges::advance was using operator+= or operator-=. This commit fixes that issue and makes the tests easier to follow by localizing the assertions it makes. Differential Revision: https://reviews.llvm.org/D103272 |
||
|---|---|---|
| .. | ||
| advance.h | ||
| concepts.h | ||
| default_sentinel.h | ||
| incrementable_traits.h | ||
| iter_move.h | ||
| iterator_traits.h | ||
| next.h | ||
| prev.h | ||
| projected.h | ||
| readable_traits.h | ||