Remove semantically wrong ordering for LaneTupel
This commit is contained in:
parent
130d5298fc
commit
abde215bc3
@ -60,7 +60,6 @@ class LaneTupel
|
|||||||
|
|
||||||
bool operator==(const LaneTupel other) const;
|
bool operator==(const LaneTupel other) const;
|
||||||
bool operator!=(const LaneTupel other) const;
|
bool operator!=(const LaneTupel other) const;
|
||||||
bool operator<(const LaneTupel other) const;
|
|
||||||
|
|
||||||
LaneID lanes_in_turn;
|
LaneID lanes_in_turn;
|
||||||
LaneID first_lane_from_the_right;
|
LaneID first_lane_from_the_right;
|
||||||
|
@ -31,13 +31,6 @@ bool LaneTupel::operator==(const LaneTupel other) const
|
|||||||
|
|
||||||
bool LaneTupel::operator!=(const LaneTupel other) const { return !(*this == other); }
|
bool LaneTupel::operator!=(const LaneTupel other) const { return !(*this == other); }
|
||||||
|
|
||||||
// comparation based on interpretation as unsigned 32bit integer
|
|
||||||
bool LaneTupel::operator<(const LaneTupel other) const
|
|
||||||
{
|
|
||||||
return std::tie(lanes_in_turn, first_lane_from_the_right) <
|
|
||||||
std::tie(other.lanes_in_turn, other.first_lane_from_the_right);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace guidance
|
} // namespace guidance
|
||||||
} // namespace util
|
} // namespace util
|
||||||
} // namespace osrm
|
} // namespace osrm
|
||||||
|
Loading…
Reference in New Issue
Block a user