fix lambda syntax
This commit is contained in:
parent
00dd2463fd
commit
39d96a45aa
@ -89,7 +89,7 @@ void DescriptionFactory::AppendSegment(const FixedPointCoordinate &coordinate,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make sure mode changes are announced, even when there otherwise is no turn
|
// 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 &&
|
if (TurnInstruction::NoTurn == path_point.turn_instruction &&
|
||||||
path_description.front().travel_mode != path_point.travel_mode &&
|
path_description.front().travel_mode != path_point.travel_mode &&
|
||||||
@ -99,9 +99,9 @@ void DescriptionFactory::AppendSegment(const FixedPointCoordinate &coordinate,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return path_point.turn_instruction
|
return path_point.turn_instruction;
|
||||||
}
|
}
|
||||||
}
|
}();
|
||||||
|
|
||||||
path_description.emplace_back(coordinate,
|
path_description.emplace_back(coordinate,
|
||||||
path_point.name_id,
|
path_point.name_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user