Fix gcc5 internal compilation error

This commit is contained in:
Michael Krasnyk 2017-08-01 22:57:28 +02:00
parent fd0d79e17b
commit df2d4daad3

View File

@ -749,8 +749,8 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(
// next to the normal restrictions tracked in `entry_allowed`, via // next to the normal restrictions tracked in `entry_allowed`, via
// ways might introduce additional restrictions. These are handled // ways might introduce additional restrictions. These are handled
// here when turning off a via-way // here when turning off a via-way
const auto add_unrestricted_turns = for (auto duplicated_node_id : duplicated_nodes)
[&](const auto duplicated_node_id) { {
const auto from_id = const auto from_id =
m_number_of_edge_based_nodes - m_number_of_edge_based_nodes -
way_restriction_map.NumberOfDuplicatedNodes() + way_restriction_map.NumberOfDuplicatedNodes() +
@ -763,7 +763,7 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(
duplicated_node_id, node_at_end_of_turn); duplicated_node_id, node_at_end_of_turn);
if (is_restricted) if (is_restricted)
return; continue;
// add into delayed data // add into delayed data
auto edge_with_data = generate_edge( auto edge_with_data = generate_edge(
@ -778,11 +778,7 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(
entry_class_id); entry_class_id);
buffer->delayed_data.push_back(std::move(edge_with_data)); buffer->delayed_data.push_back(std::move(edge_with_data));
}; }
std::for_each(duplicated_nodes.begin(),
duplicated_nodes.end(),
add_unrestricted_turns);
} }
} }
} }