Fix util::make_pathfinder

This commit is contained in:
Nikita Lisitsa 2023-01-15 22:41:29 +03:00
parent 63f576aee5
commit e83df0d965

View file

@ -132,7 +132,7 @@ namespace psemek::util
template <typename Cost, typename Node, typename NeighboursFn, typename HeuristicFn>
auto make_pathfinder(NeighboursFn && node_neighbours, HeuristicFn && heuristic)
{
return pathfinder<Cost, Node, NeighboursFn, HeuristicFn, decltype(util::nop)>(std::forward<NeighboursFn>(node_neighbours), std::forward<HeuristicFn>(heuristic), util::nop);
return make_pathfinder<Cost, Node>(std::forward<NeighboursFn>(node_neighbours), std::forward<HeuristicFn>(heuristic), util::nop);
}
template <typename Cost, typename Node, typename NeighboursFn, typename HeuristicFn>