Use custom struct instead of std::pair in QueryHeap

This commit is contained in:
Siarhei Fedartsou 2024-05-30 17:22:01 +02:00
parent 4ae5213d9d
commit 608f6ca383

View File

@ -370,7 +370,7 @@ class QueryHeap
const auto index = node_index.peek_index(node); const auto index = node_index.peek_index(node);
auto &reference = inserted_nodes[index]; auto &reference = inserted_nodes[index];
reference.weight = weight; reference.weight = weight;
heap.increase(reference.handle, HeapData{weight, index}); heap.increase(reference.handle, HeapData{weight, static_cast<Key>(index)});
} }
void DecreaseKey(const HeapNode &heapNode) void DecreaseKey(const HeapNode &heapNode)