Merge pull request #11095 from ethereum/fixGcc8

Fix compilation error with GCC 8.
This commit is contained in:
Daniel Kirchner 2021-03-12 13:25:25 +01:00 committed by GitHub
commit 1265b39904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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