2
0
mirror of https://github.com/boostorg/log.git synced 2026-02-10 23:42:22 +00:00

Fixed #11148. Fixed incorrect behavior of attribute_value_set::size() if a large number of attribute values are inserted into the set.

This commit is contained in:
Andrey Semashev
2015-03-28 19:04:31 +03:00
parent 54759c6890
commit f74a7df2df
4 changed files with 27 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ private:
typedef intrusive::list<
node,
intrusive::value_traits< value_traits >,
intrusive::constant_time_size< false >
intrusive::constant_time_size< true >
> node_list;
//! A hash table bucket
@@ -100,7 +100,7 @@ private:
struct disposer
{
typedef void result_type;
void operator() (node* p) const
void operator() (node* p) const BOOST_NOEXCEPT
{
if (!p->m_DynamicallyAllocated)
p->~node();
@@ -259,7 +259,7 @@ public:
size_type size()
{
freeze();
return (m_pEnd - m_pStorage);
return m_Nodes.size();
}
//! Looks for the element with an equivalent key