Fix compilation error with GCC 8.

This commit is contained in:
Daniel Kirchner 2021-03-12 11:19:37 +01:00
parent 0e22d0bd40
commit 6d19a25705

View File

@ -39,7 +39,6 @@
#include <range/v3/view/set_algorithm.hpp> #include <range/v3/view/set_algorithm.hpp>
#include <range/v3/view/transform.hpp> #include <range/v3/view/transform.hpp>
#include <functional>
#include <memory> #include <memory>
#include <ostream> #include <ostream>
#include <set> #include <set>
@ -173,8 +172,8 @@ void checkCallGraphExpectations(
ostream& operator<<(ostream& _out, EdgeNames const& _edgeNames) ostream& operator<<(ostream& _out, EdgeNames const& _edgeNames)
{ {
for (auto const& edge: _edgeNames | to<vector>() | actions::sort(std::less())) for (auto const& [from, to]: _edgeNames)
_out << " " << get<0>(edge) << " -> " << get<1>(edge) << endl; _out << " " << from << " -> " << to << endl;
return _out; return _out;
} }