Missing call to contruct

This commit is contained in:
Clement Jamin 2014-07-02 13:03:39 +02:00
parent a35a5df4ac
commit 6c3e9909ec
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,9 @@ void chained_map<T, Allocator>::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<T>());
free = table + t;
table_end = table + t + t/2;