mirror of https://github.com/CGAL/cgal
Use allocator_traits for destroy
This commit is contained in:
parent
9d218a45e0
commit
f3d5a573df
|
|
@ -718,7 +718,7 @@ void Concurrent_compact_container<T, Allocator>::clear()
|
|||
size_type s = it->second;
|
||||
for (pointer pp = p + 1; pp != p + s - 1; ++pp) {
|
||||
if (type(pp) == USED)
|
||||
m_alloc.destroy(pp);
|
||||
std::allocator_traits<allocator_type>::destroy(m_alloc, pp);
|
||||
}
|
||||
m_alloc.deallocate(p, s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue