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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user