|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83960 - trunk/boost/container
From: igaztanaga_at_[hidden]
Date: 2013-04-18 16:04:06
Author: igaztanaga
Date: 2013-04-18 16:04:04 EDT (Thu, 18 Apr 2013)
New Revision: 83960
URL: http://svn.boost.org/trac/boost/changeset/83960
Log:
Fixes operator- bug.
Text files modified:
trunk/boost/container/vector.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/container/vector.hpp
==============================================================================
--- trunk/boost/container/vector.hpp (original)
+++ trunk/boost/container/vector.hpp 2013-04-18 16:04:04 EDT (Thu, 18 Apr 2013)
@@ -137,7 +137,7 @@
{ 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; }
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk