mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fix iter_wrapper for iterator=pointer
This commit is contained in:
parent
212ed92ac5
commit
ba45bd34d6
@ -82,7 +82,7 @@ private:
|
|||||||
void increment() { ++it; }
|
void increment() { ++it; }
|
||||||
void decrement() { --it; }
|
void decrement() { --it; }
|
||||||
void advance(size_t n) { it += n; }
|
void advance(size_t n) { it += n; }
|
||||||
typename WrappedIter::difference_type
|
typename std::iterator_traits<WrappedIter>::difference_type
|
||||||
distance_to(const iter_wrapper &other) const {
|
distance_to(const iter_wrapper &other) const {
|
||||||
return other.it - it;
|
return other.it - it;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user