This commit is contained in:
Siarhei Fedartsou 2024-07-12 21:32:52 +02:00
parent 8bd26dc8b6
commit 3096440505
2 changed files with 1 additions and 4 deletions

View File

@ -70,7 +70,7 @@ class MemoryPool
template <typename T> void deallocate(T *p, std::size_t n) noexcept
{
size_t free_list_index = get_next_power_of_two_exponent(n * sizeof(T));
free_lists_[free_list_index].push_back(p);
free_lists_[free_list_index].push_back(static_cast<void *>(p));
}
~MemoryPool()

View File

@ -5,9 +5,7 @@
#include <algorithm>
#include <boost/assert.hpp>
#include <boost/heap/d_ary_heap.hpp>
#include <boost/pool/pool_alloc.hpp>
#include <cstdint>
#include <iostream>
#include <limits>
#include <map>
#include <optional>
@ -180,7 +178,6 @@ class QueryHeap
heap.clear();
inserted_nodes.clear();
node_index.Clear();
heap.reserve(1024);
}
std::size_t Size() const { return heap.size(); }