From 9c97e11949e3d78d8b63b9b8029ebeaaa580d2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 18 Apr 2013 20:04:04 +0000 Subject: [PATCH] Fixes operator- bug. [SVN r83960] --- include/boost/container/vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/container/vector.hpp b/include/boost/container/vector.hpp index 4319e6b..06d2c3f 100644 --- a/include/boost/container/vector.hpp +++ b/include/boost/container/vector.hpp @@ -137,7 +137,7 @@ class vector_const_iterator { right.m_ptr += off; return right; } 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 { return left.m_ptr - right.m_ptr; }