forked from boostorg/iterator
Merge pull request #28 from Lastique/patch-2
Avoid integer overflow on negating distance in reverse_iterator
This commit is contained in:
@ -50,7 +50,7 @@ namespace iterators {
|
|||||||
|
|
||||||
void advance(typename super_t::difference_type n)
|
void advance(typename super_t::difference_type n)
|
||||||
{
|
{
|
||||||
this->base_reference() += -n;
|
this->base_reference() -= n;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class OtherIterator>
|
template <class OtherIterator>
|
||||||
|
Reference in New Issue
Block a user