It's totally broken: instead of returning the current position and
moving to the next position, it returns the next position and doesn't
move anywhere. Luckily it hasn't been used until now.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
2ab5b52f71c88cb55f8ed82f1dfd0115fdd6e022)
inline IteratorImpl operator++(int) {
IteratorImpl iterator_impl(*this);
- ++iterator_impl;
+ ++*this;
return iterator_impl;
}
inline IteratorImpl operator+(uint64_t offset) {