File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ template <typename IntersectionType> // works with Intersection and Intersection
122122std::size_t IntersectionHandler::findObviousTurn (const EdgeID via_edge,
123123 const IntersectionType &intersection) const
124124{
125+ using Road = typename IntersectionType::value_type;
125126 using EdgeData = osrm::util::NodeBasedDynamicGraph::EdgeData;
126127 using osrm::util::angularDeviation;
127128
@@ -269,7 +270,7 @@ std::size_t IntersectionHandler::findObviousTurn(const EdgeID via_edge,
269270
270271 // checks if continue candidates are sharp turns
271272 const bool all_continues_are_narrow = [&]() {
272- return std::count_if (begin (intersection), end (intersection), [&](const auto &road) {
273+ return std::count_if (begin (intersection), end (intersection), [&](const Road &road) {
273274 const EdgeData &road_data = node_based_graph.GetEdgeData (road.eid );
274275 const double &road_angle = angularDeviation (road.angle , STRAIGHT_ANGLE);
275276 return IsContinueRoad (road_data) && (road_angle < NARROW_TURN_ANGLE);
You can’t perform that action at this time.
0 commit comments