From 7eb2d93a82f14768d33438cf3617fd5ae5feedb9 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Wed, 10 Jul 2024 20:16:37 +0200 Subject: [PATCH] wip --- include/contractor/contractor_heap.hpp | 3 +-- include/util/pool_allocator.hpp | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/contractor/contractor_heap.hpp b/include/contractor/contractor_heap.hpp index 77a0a85af..fc581f3b0 100644 --- a/include/contractor/contractor_heap.hpp +++ b/include/contractor/contractor_heap.hpp @@ -20,8 +20,7 @@ using ContractorHeap = util::QueryHeap, - false>; + util::XORFastHashStorage>; } // namespace osrm::contractor diff --git a/include/util/pool_allocator.hpp b/include/util/pool_allocator.hpp index 23b8737db..6d4eaffa4 100644 --- a/include/util/pool_allocator.hpp +++ b/include/util/pool_allocator.hpp @@ -63,6 +63,15 @@ template class PoolAllocator } } + PoolAllocator(const PoolAllocator &) {} + + PoolAllocator &operator=(const PoolAllocator &){return *this;} + + // You may also want to implement move semantics if needed + PoolAllocator(PoolAllocator &&) noexcept = default; + PoolAllocator &operator=(PoolAllocator &&) noexcept = default; + + private: size_t get_next_power_of_two_exponent(size_t n) const {