From 9ab4fb9eff53c21a15222431dd65d8cfd7499d42 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 29 Jan 2012 13:33:03 +0000 Subject: [PATCH] Fix bug in object_cache.hpp Fixes #6440. [SVN r76775] --- include/boost/regex/pending/object_cache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/regex/pending/object_cache.hpp b/include/boost/regex/pending/object_cache.hpp index 05b6bfa2..d47fbba9 100644 --- a/include/boost/regex/pending/object_cache.hpp +++ b/include/boost/regex/pending/object_cache.hpp @@ -151,7 +151,7 @@ boost::shared_ptr object_cache::do_get(const Key& k, --s; } else - --pos; + ++pos; } BOOST_ASSERT(s_data.index[k]->first.get() == result.get()); BOOST_ASSERT(&(s_data.index.find(k)->first) == s_data.cont.back().second);