From 97dcf4eef96cd008386488751a804889112cafe0 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Thu, 8 Dec 2016 11:31:17 +0100 Subject: [PATCH] Fixes Compiler Crashes on Windows --- include/extractor/guidance/intersection_handler.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/extractor/guidance/intersection_handler.hpp b/include/extractor/guidance/intersection_handler.hpp index d68514db6..7bdcff3a5 100644 --- a/include/extractor/guidance/intersection_handler.hpp +++ b/include/extractor/guidance/intersection_handler.hpp @@ -122,6 +122,7 @@ template // works with Intersection and Intersection std::size_t IntersectionHandler::findObviousTurn(const EdgeID via_edge, const IntersectionType &intersection) const { + using Road = typename IntersectionType::value_type; using EdgeData = osrm::util::NodeBasedDynamicGraph::EdgeData; using osrm::util::angularDeviation; @@ -269,7 +270,7 @@ std::size_t IntersectionHandler::findObviousTurn(const EdgeID via_edge, // checks if continue candidates are sharp turns const bool all_continues_are_narrow = [&]() { - return std::count_if(begin(intersection), end(intersection), [&](const auto &road) { + return std::count_if(begin(intersection), end(intersection), [&](const Road &road) { const EdgeData &road_data = node_based_graph.GetEdgeData(road.eid); const double &road_angle = angularDeviation(road.angle, STRAIGHT_ANGLE); return IsContinueRoad(road_data) && (road_angle < NARROW_TURN_ANGLE);