summaryrefslogtreecommitdiff
path: root/libs/log/src/attribute_set_impl.hpp
diff options
context:
space:
mode:
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