System : Do not use generic lambda

This commit is contained in:
Magne Sjaastad 2018-11-01 20:01:04 +01:00
parent 78505bb44d
commit cd61b525a7

View File

@ -558,10 +558,11 @@ std::vector<std::pair<size_t, float>> Rim2dGridProjection::visibleCellsAndWeight
}
}
std::sort(matchingVisibleCellsWeightAndHeight.begin(), matchingVisibleCellsWeightAndHeight.end(), [](const auto& lhs, const auto& rhs)
{
return std::get<2>(lhs) > std::get<2>(rhs);
});
std::sort(matchingVisibleCellsWeightAndHeight.begin(),
matchingVisibleCellsWeightAndHeight.end(),
[](const std::tuple<size_t, float, float>& lhs, const std::tuple<size_t, float, float>& rhs) {
return std::get<2>(lhs) > std::get<2>(rhs);
});
std::vector<std::pair<size_t, float>> matchingVisibleCellsAndWeight;
for (const auto& visWeightHeight : matchingVisibleCellsWeightAndHeight)