mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 14:04:26 +02:00
Fixes operator- bug.
[SVN r83960]
This commit is contained in:
@@ -137,7 +137,7 @@ class vector_const_iterator
|
|||||||
{ right.m_ptr += off; return right; }
|
{ right.m_ptr += off; return right; }
|
||||||
|
|
||||||
friend vector_const_iterator operator-(vector_const_iterator left, difference_type off) BOOST_CONTAINER_NOEXCEPT
|
friend vector_const_iterator operator-(vector_const_iterator left, difference_type off) BOOST_CONTAINER_NOEXCEPT
|
||||||
{ left.m_ptr += off; return left; }
|
{ left.m_ptr -= off; return left; }
|
||||||
|
|
||||||
friend difference_type operator-(const vector_const_iterator &left, const vector_const_iterator& right) BOOST_CONTAINER_NOEXCEPT
|
friend difference_type operator-(const vector_const_iterator &left, const vector_const_iterator& right) BOOST_CONTAINER_NOEXCEPT
|
||||||
{ return left.m_ptr - right.m_ptr; }
|
{ return left.m_ptr - right.m_ptr; }
|
||||||
|
Reference in New Issue
Block a user