Fix issues with std::range::views using clang and C++20

This commit is contained in:
stefiosif
2024-08-03 13:54:11 +03:00
parent 3951db7ff9
commit 467edb4019
3 changed files with 14 additions and 6 deletions

View File

@@ -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;
}