From f3d5a573dff4ad78b17d1ebf0f708e6f7ca68ce5 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Thu, 21 May 2020 11:52:21 +0200 Subject: [PATCH] Use allocator_traits for destroy --- STL_Extension/include/CGAL/Concurrent_compact_container.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STL_Extension/include/CGAL/Concurrent_compact_container.h b/STL_Extension/include/CGAL/Concurrent_compact_container.h index 5ab9eca6790..2cf395fdba6 100644 --- a/STL_Extension/include/CGAL/Concurrent_compact_container.h +++ b/STL_Extension/include/CGAL/Concurrent_compact_container.h @@ -718,7 +718,7 @@ void Concurrent_compact_container::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::destroy(m_alloc, pp); } m_alloc.deallocate(p, s); }