Do not depend on ADL

This commit is contained in:
Yuriy Chernyshov 2022-01-10 14:28:43 +03:00 committed by GitHub
parent c0b79a8d0e
commit f2e284623e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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