Skip to content

Commit 32e1f37

Browse files
committed
Access by reference...
1 parent 9ab3e64 commit 32e1f37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_strongly_connected_components.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ int main() {
3333
// sort things to make it easier to verify
3434
sort(components.begin(), components.end(),
3535
[](auto &l, auto &r) { return l[0] < r[0]; });
36-
for (vector<int> a : adj_scc)
36+
for (vector<int> &a : adj_scc)
3737
sort(a.begin(), a.end());
38-
for (vector<int> a : components)
38+
for (vector<int> &a : components)
3939
sort(a.begin(), a.end());
4040

4141
assert(components.size() == 4);

0 commit comments

Comments
 (0)