Fix formatting
This commit is contained in:
parent
c42db23e3d
commit
cadf0d6408
@ -154,19 +154,20 @@ inline bool operator==(const TurnInstruction lhs, const TurnInstruction rhs)
|
|||||||
inline bool hasRoundaboutType(const TurnInstruction instruction)
|
inline bool hasRoundaboutType(const TurnInstruction instruction)
|
||||||
{
|
{
|
||||||
using namespace guidance::TurnType;
|
using namespace guidance::TurnType;
|
||||||
const constexpr std::array<TurnType::Enum, 13> valid_types = {TurnType::EnterRoundabout,
|
const constexpr std::array<TurnType::Enum, 13> valid_types = {
|
||||||
TurnType::EnterAndExitRoundabout,
|
TurnType::EnterRoundabout,
|
||||||
TurnType::EnterRotary,
|
TurnType::EnterAndExitRoundabout,
|
||||||
TurnType::EnterAndExitRotary,
|
TurnType::EnterRotary,
|
||||||
TurnType::EnterRoundaboutIntersection,
|
TurnType::EnterAndExitRotary,
|
||||||
TurnType::EnterAndExitRoundaboutIntersection,
|
TurnType::EnterRoundaboutIntersection,
|
||||||
TurnType::EnterRoundaboutAtExit,
|
TurnType::EnterAndExitRoundaboutIntersection,
|
||||||
TurnType::ExitRoundabout,
|
TurnType::EnterRoundaboutAtExit,
|
||||||
TurnType::EnterRotaryAtExit,
|
TurnType::ExitRoundabout,
|
||||||
TurnType::ExitRotary,
|
TurnType::EnterRotaryAtExit,
|
||||||
TurnType::EnterRoundaboutIntersectionAtExit,
|
TurnType::ExitRotary,
|
||||||
TurnType::ExitRoundaboutIntersection,
|
TurnType::EnterRoundaboutIntersectionAtExit,
|
||||||
TurnType::StayOnRoundabout};
|
TurnType::ExitRoundaboutIntersection,
|
||||||
|
TurnType::StayOnRoundabout};
|
||||||
|
|
||||||
return std::find(valid_types.cbegin(), valid_types.cend(), instruction.type);
|
return std::find(valid_types.cbegin(), valid_types.cend(), instruction.type);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user