Fix issues with std::range::views using clang and C++20
This commit is contained in:
@@ -70,9 +70,9 @@ template <typename T> void Tarjan<T>::strongConnect(const T &u) {
|
||||
}
|
||||
|
||||
template <typename T> auto Tarjan<T>::execute() {
|
||||
for (const auto &u : std::views::keys(adjList)) {
|
||||
if (V[u].index == -1)
|
||||
strongConnect(u);
|
||||
for (const auto &u : adjList) {
|
||||
if (V[u.first].index == -1)
|
||||
strongConnect(u.first);
|
||||
}
|
||||
return SCCs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user