Skip to content

Commit 0723dc0

Browse files
wip
1 parent 3bd897f commit 0723dc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: include/util/query_heap.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <optional>
1313
#include <unordered_map>
1414
#include <vector>
15-
1615
namespace osrm::util
1716
{
1817

@@ -217,10 +216,12 @@ class QueryHeap
217216
return weight > other.weight;
218217
}
219218
};
219+
using HeapContainerAllocator = boost::fast_pool_allocator<HeapData>;
220220
using HeapContainer = boost::heap::d_ary_heap<HeapData,
221221
boost::heap::arity<4>,
222222
boost::heap::mutable_<true>,
223-
boost::heap::compare<std::greater<HeapData>>>;
223+
boost::heap::compare<std::greater<HeapData>>,
224+
boost::heap::allocator<HeapContainerAllocator>>;
224225
using HeapHandle = typename HeapContainer::handle_type;
225226

226227
public:

0 commit comments

Comments
 (0)