summaryrefslogtreecommitdiff
path: root/libs/log/src/attribute_set_impl.hpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-08 03:09:47 +0000
committer <>2015-05-05 14:37:32 +0000
commitf2541bb90af059680aa7036f315f052175999355 (patch)
treea5b214744b256f07e1dc2bd7273035a7808c659f /libs/log/src/attribute_set_impl.hpp
parented232fdd34968697a68783b3195b1da4226915b5 (diff)
downloadboost-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/log/src/attribute_set_impl.hpp')
-rw-r--r--libs/log/src/attribute_set_impl.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/log/src/attribute_set_impl.hpp b/libs/log/src/attribute_set_impl.hpp
index 2e687a3f4..039151938 100644
--- a/libs/log/src/attribute_set_impl.hpp
+++ b/libs/log/src/attribute_set_impl.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright Andrey Semashev 2007 - 2014.
+ * Copyright Andrey Semashev 2007 - 2015.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
@@ -283,12 +283,6 @@ public:
b.first = b.last = n;
it = m_Nodes.end();
}
- else if (p == b.first)
- {
- // The new element should become the first element of the bucket
- it = m_Nodes.iterator_to(*p);
- b.first = n;
- }
else if (p == b.last && key.id() > p->m_Value.first.id())
{
// The new element should become the last element of the bucket
@@ -296,6 +290,12 @@ public:
++it;
b.last = n;
}
+ else if (p == b.first)
+ {
+ // The new element should become the first element of the bucket
+ it = m_Nodes.iterator_to(*p);
+ b.first = n;
+ }
else
{
// The new element should be within the bucket