Do not depend on ADL
This commit is contained in:
parent
c0b79a8d0e
commit
f2e284623e
@ -671,10 +671,10 @@ std::vector<bool> contractGraph(ContractorGraph &graph,
|
|||||||
});
|
});
|
||||||
|
|
||||||
// sort all remaining nodes to the beginning of the sequence
|
// sort all remaining nodes to the beginning of the sequence
|
||||||
const auto begin_independent_nodes =
|
const auto begin_independent_nodes = std::stable_partition(
|
||||||
stable_partition(remaining_nodes.begin(),
|
remaining_nodes.begin(), remaining_nodes.end(), [](RemainingNodeData node_data) {
|
||||||
remaining_nodes.end(),
|
return !node_data.is_independent;
|
||||||
[](RemainingNodeData node_data) { return !node_data.is_independent; });
|
});
|
||||||
auto begin_independent_nodes_idx =
|
auto begin_independent_nodes_idx =
|
||||||
std::distance(remaining_nodes.begin(), begin_independent_nodes);
|
std::distance(remaining_nodes.begin(), begin_independent_nodes);
|
||||||
auto end_independent_nodes_idx = remaining_nodes.size();
|
auto end_independent_nodes_idx = remaining_nodes.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user