Use allocator_traits for destroy

This commit is contained in:
Marc Glisse 2020-05-21 11:52:21 +02:00
parent 9d218a45e0
commit f3d5a573df
1 changed files with 1 additions and 1 deletions

View File

@ -718,7 +718,7 @@ void Concurrent_compact_container<T, Allocator>::clear()
size_type s = it->second; size_type s = it->second;
for (pointer pp = p + 1; pp != p + s - 1; ++pp) { for (pointer pp = p + 1; pp != p + s - 1; ++pp) {
if (type(pp) == USED) if (type(pp) == USED)
m_alloc.destroy(pp); std::allocator_traits<allocator_type>::destroy(m_alloc, pp);
} }
m_alloc.deallocate(p, s); m_alloc.deallocate(p, s);
} }