This commit is contained in:
Siarhei Fedartsou 2024-07-10 20:16:37 +02:00
parent 49f875c0f8
commit 7eb2d93a82
2 changed files with 10 additions and 2 deletions

View File

@ -20,8 +20,7 @@ using ContractorHeap = util::QueryHeap<NodeID,
NodeID, NodeID,
EdgeWeight, EdgeWeight,
ContractorHeapData, ContractorHeapData,
util::XORFastHashStorage<NodeID, NodeID>, util::XORFastHashStorage<NodeID, NodeID>>;
false>;
} // namespace osrm::contractor } // namespace osrm::contractor

View File

@ -63,6 +63,15 @@ template <typename T, size_t MinItemsInBlock = 1024> 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: private:
size_t get_next_power_of_two_exponent(size_t n) const size_t get_next_power_of_two_exponent(size_t n) const
{ {