ryanhaining / cppitertools

Implementation of python itertools and builtin iteration functions for C++17
https://twitter.com/cppitertools
BSD 2-Clause "Simplified" License
1.37k stars 115 forks source link

slice bug with oversize ranges #9

Closed aaronjosephs closed 10 years ago

aaronjosephs commented 11 years ago

when you give indices larger than the size of the whole range it can break it

ryanhaining commented 11 years ago

.size() is in the current fix, but this is unreliable as many containers won't have it

aaronjosephs commented 11 years ago

you're unreliable

ryanhaining commented 10 years ago

slice has since been overhauled. new issues should address the new implementation, which I'm also not thrilled with