Fix unused lambda capture warnings

This commit is contained in:
Patrick Niklaus
2018-02-02 11:59:30 +00:00
committed by Patrick Niklaus
parent f48dd665ad
commit 97d027a173
7 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -145,11 +145,11 @@ typename Intersection::const_iterator findBestMatchForReverse(const TurnLaneType
if (neighbor_itr + 1 == intersection.cend())
return intersection.begin();
const TurnLaneType::Mask tag = TurnLaneType::uturn;
return std::min_element(
intersection.begin() + std::distance(intersection.begin(), neighbor_itr),
intersection.end(),
[tag](const ConnectedRoad &lhs, const ConnectedRoad &rhs) {
[](const ConnectedRoad &lhs, const ConnectedRoad &rhs) {
const TurnLaneType::Mask tag = TurnLaneType::uturn;
// prefer valid matches
if (isValidMatch(tag, lhs.instruction) != isValidMatch(tag, rhs.instruction))
return isValidMatch(tag, lhs.instruction);