Closed cjdb closed 5 years ago
ranges::advance(i, -n, i) decrements i while bool(i != i), but it was accidentally doing one too many decrements thanks to the post-checked loop. This commit changes the loop to a pre-check.
bool(i != i)
ranges::advance(i, -n, i) decrements i while
bool(i != i)
, but it was accidentally doing one too many decrements thanks to the post-checked loop. This commit changes the loop to a pre-check.