Fix bug in object_cache.hpp

Fixes #6440.

[SVN r76775]
This commit is contained in:
John Maddock
2012-01-29 13:33:03 +00:00
parent ed90c8cec5
commit 9ab4fb9eff

View File

@ -151,7 +151,7 @@ boost::shared_ptr<Object const> object_cache<Key, Object>::do_get(const Key& k,
--s; --s;
} }
else else
--pos; ++pos;
} }
BOOST_ASSERT(s_data.index[k]->first.get() == result.get()); BOOST_ASSERT(s_data.index[k]->first.get() == result.get());
BOOST_ASSERT(&(s_data.index.find(k)->first) == s_data.cont.back().second); BOOST_ASSERT(&(s_data.index.find(k)->first) == s_data.cont.back().second);