Skip to content

Commit

Permalink
graph_traversal: add missing typenames
Browse files Browse the repository at this point in the history
  • Loading branch information
yut23 committed Dec 17, 2024
1 parent ae0e6bc commit 7614af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aoc_lib/src/graph_traversal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ concept AnySourceCollection =
* not found.
*/
template <bool use_seen = true, detail::AnySourceCollection ASC,
class Key = ASC::value_type,
class Key = typename ASC::value_type,
detail::ProcessNeighbors<Key> ProcessNeighbors,
detail::IsTarget<Key> IsTarget = detail::optional_func,
detail::Visit<Key> Visit = detail::optional_func>
Expand Down Expand Up @@ -454,7 +454,7 @@ struct tarjan_entry {
* Components are returned in topological order, along with a set of the
* directed edges between the components.
*/
template <detail::AnySourceCollection ASC, class Key = ASC::value_type,
template <detail::AnySourceCollection ASC, class Key = typename ASC::value_type,
detail::ProcessNeighbors<Key> ProcessNeighbors>
std::pair<std::vector<std::vector<Key>>, std::set<std::pair<int, int>>>
tarjan_scc(const ASC &sources, ProcessNeighbors &&process_neighbors) {
Expand Down

0 comments on commit 7614af1

Please sign in to comment.