Fix gcc5 compilation error

This commit is contained in:
Denis Koronchik 2017-10-16 18:20:23 +03:00 committed by Patrick Niklaus
parent 404c275101
commit 553310fb31

View File

@ -71,7 +71,8 @@ struct ContractedEdgeContainer
auto flags_iter = flags.begin();
// Remove all edges that are contained in the old set of edges and set the appropriate flag.
auto new_end = std::remove_if(new_edges.begin(), new_edges.end(), [&](const auto &edge) {
auto new_end =
std::remove_if(new_edges.begin(), new_edges.end(), [&](const QueryEdge &edge) {
// check if the new edge would be sorted before the currend old edge
// if so it is not contained yet in the set of old edges
if (edge_iter == edge_end || mergeCompare(edge, *edge_iter))