Skip to content

Commit

Permalink
fix lambda syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM committed Aug 20, 2014
1 parent 00dd246 commit 39d96a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Descriptors/DescriptionFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void DescriptionFactory::AppendSegment(const FixedPointCoordinate &coordinate,
}

// make sure mode changes are announced, even when there otherwise is no turn
const TurnInstruction turn = [] -> TurnInstruction ()
const TurnInstruction turn = [&]() -> TurnInstruction
{
if (TurnInstruction::NoTurn == path_point.turn_instruction &&
path_description.front().travel_mode != path_point.travel_mode &&
Expand All @@ -99,9 +99,9 @@ void DescriptionFactory::AppendSegment(const FixedPointCoordinate &coordinate,
}
else
{
return path_point.turn_instruction
}
}
return path_point.turn_instruction;
}
}();

path_description.emplace_back(coordinate,
path_point.name_id,
Expand Down

0 comments on commit 39d96a4

Please sign in to comment.