Remove import of ranges namespace.

This commit is contained in:
Daniel Kirchner 2021-05-07 13:44:14 +02:00
parent 518629a8f6
commit c69add1682

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));