Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SiarheiFedartsou committed Jul 10, 2024
1 parent 49f875c commit e4e90f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions include/contractor/contractor_heap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ using ContractorHeap = util::QueryHeap<NodeID,
NodeID,
EdgeWeight,
ContractorHeapData,
util::XORFastHashStorage<NodeID, NodeID>,
false>;
util::XORFastHashStorage<NodeID, NodeID>>;

} // namespace osrm::contractor

Expand Down
9 changes: 9 additions & 0 deletions include/util/pool_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
size_t get_next_power_of_two_exponent(size_t n) const
{
Expand Down

0 comments on commit e4e90f4

Please sign in to comment.