From 6c3e9909ec442033c27a6c7380d1c7ad7246e587 Mon Sep 17 00:00:00 2001 From: Clement Jamin Date: Wed, 2 Jul 2014 13:03:39 +0200 Subject: [PATCH] Missing call to contruct --- Hash_map/include/CGAL/Tools/chained_map.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Hash_map/include/CGAL/Tools/chained_map.h b/Hash_map/include/CGAL/Tools/chained_map.h index 63ddd7d4bad..abed099a843 100644 --- a/Hash_map/include/CGAL/Tools/chained_map.h +++ b/Hash_map/include/CGAL/Tools/chained_map.h @@ -143,6 +143,9 @@ void chained_map::init_table(std::size_t t) table_size = t; table_size_1 = t-1; table = alloc.allocate(t + t/2); + for (std::size_t i = 0 ; i < t + t/2 ; ++i) + alloc.construct(table + i, chained_map_elem()); + free = table + t; table_end = table + t + t/2;