Remove semantically wrong ordering for LaneTupel

This commit is contained in:
Daniel J. Hofmann 2016-07-18 12:33:56 +02:00
parent 130d5298fc
commit abde215bc3
2 changed files with 0 additions and 8 deletions

View File

@ -60,7 +60,6 @@ class LaneTupel
bool operator==(const LaneTupel other) const;
bool operator!=(const LaneTupel other) const;
bool operator<(const LaneTupel other) const;
LaneID lanes_in_turn;
LaneID first_lane_from_the_right;

View File

@ -31,13 +31,6 @@ bool LaneTupel::operator==(const LaneTupel other) const
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 util
} // namespace osrm