Skip to content

Commit

Permalink
Fix: removed ComparatorType
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmie committed Jul 24, 2022
1 parent 97c0c44 commit 11441b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Graph/Graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Graph
break;
}

void SetBestPathAlgorithm(std::invocable<const Graph<Vertex, Weight>*, const Vertex&, const Vertex&, ComparatorType> auto&& function) noexcept
void SetBestPathAlgorithm(std::invocable<const Graph<Vertex, Weight>*, const Vertex&, const Vertex&, std::function<bool(const Weight&, const Weight&)>&&> auto&& function) noexcept
{
best_path = std::forward<decltype(function)>(function);
}
Expand Down
1 change: 1 addition & 0 deletions Graph/Performance.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <cassert>
#include <chrono>
#include <ranges>
#include <random>
#include <limits>
Expand Down

0 comments on commit 11441b4

Please sign in to comment.