Skip to content

Commit

Permalink
Do not depend on ADL
Browse files Browse the repository at this point in the history
  • Loading branch information
georgthegreat authored Jan 10, 2022
1 parent c0b79a8 commit f2e2846
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/contractor/graph_contractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,10 +671,10 @@ std::vector<bool> contractGraph(ContractorGraph &graph,
});

// sort all remaining nodes to the beginning of the sequence
const auto begin_independent_nodes =
stable_partition(remaining_nodes.begin(),
remaining_nodes.end(),
[](RemainingNodeData node_data) { return !node_data.is_independent; });
const auto begin_independent_nodes = std::stable_partition(
remaining_nodes.begin(), remaining_nodes.end(), [](RemainingNodeData node_data) {
return !node_data.is_independent;
});
auto begin_independent_nodes_idx =
std::distance(remaining_nodes.begin(), begin_independent_nodes);
auto end_independent_nodes_idx = remaining_nodes.size();
Expand Down

0 comments on commit f2e2846

Please sign in to comment.