Merge pull request #11355 from ethereum/rangesImport

Remove import of ranges namespace.
This commit is contained in:
Alex Beregszaszi 2021-05-07 13:27:08 +01:00 committed by GitHub
commit 1ddcd66a66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,6 @@
#include <variant> #include <variant>
using namespace std; using namespace std;
using namespace ranges;
using namespace solidity; using namespace solidity;
using namespace solidity::util; using namespace solidity::util;
using namespace solidity::frontend; using namespace solidity::frontend;
@ -80,7 +79,7 @@ set<CallableDeclaration const*, ASTNode::CompareByID> collectReachableCallables(
) )
{ {
set<CallableDeclaration const*, ASTNode::CompareByID> reachableCallables; set<CallableDeclaration const*, ASTNode::CompareByID> reachableCallables;
for (CallGraph::Node const& reachableNode: _graph.edges | views::keys) for (CallGraph::Node const& reachableNode: _graph.edges | ranges::views::keys)
if (holds_alternative<CallableDeclaration const*>(reachableNode)) if (holds_alternative<CallableDeclaration const*>(reachableNode))
reachableCallables.emplace(get<CallableDeclaration const*>(reachableNode)); reachableCallables.emplace(get<CallableDeclaration const*>(reachableNode));