diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-08 23:12:14 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-09 00:15:03 +0100 |
commit | b5592cb1813f2af3d2c7c56ae874e67c023644a9 (patch) | |
tree | 2e6c6d6f6d57a6d2bcde1b7081bdb0528f29039b /src | |
parent | 2ec5c1eff1ba2ec8cc11c3e6cc01e623184a5c80 (diff) |
workaround bug with push_heap _GLIBCXX_DEBUG
Diffstat (limited to 'src')
-rw-r--r-- | src/dijkstra.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dijkstra.cpp b/src/dijkstra.cpp index 8dd8d97a..d49934a1 100644 --- a/src/dijkstra.cpp +++ b/src/dijkstra.cpp @@ -1,6 +1,7 @@ #include "path-search.hpp" #include "compat/format.hpp" #include "compat/debug.hpp" +#include "compat/heap.hpp" #include "object.hpp" #include "point.hpp" #include <cstdio> @@ -143,12 +144,12 @@ void astar::clear() void astar::add_to_heap(uint32_t id) { Q.push_back(id); - std::push_heap(Q.begin(), Q.end(), heap_comparator{nodes}); + Heap::push_heap(Q.begin(), Q.end(), heap_comparator{nodes}); } uint32_t astar::pop_from_heap() { - std::pop_heap(Q.begin(), Q.end(), heap_comparator{nodes}); + Heap::pop_heap(Q.begin(), Q.end(), heap_comparator{nodes}); const auto id = Q.back(); Q.pop_back(); return id; |