From e4492b649c4774f718d04a14f860bff0ab58f39e Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Wed, 18 Sep 2019 10:45:36 +0200 Subject: [PATCH] Remove an auto from a lambda in pft --- source/distributed/fully_distributed_tria.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/source/distributed/fully_distributed_tria.cc b/source/distributed/fully_distributed_tria.cc index f4fe3720d4..10b7bdfaf9 100644 --- a/source/distributed/fully_distributed_tria.cc +++ b/source/distributed/fully_distributed_tria.cc @@ -484,13 +484,12 @@ namespace parallel Triangulation::coarse_cell_id_to_coarse_cell_index( const types::coarse_cell_id coarse_cell_id) const { - const auto coarse_cell_index = - std::lower_bound(coarse_cell_id_to_coarse_cell_index_vector.begin(), - coarse_cell_id_to_coarse_cell_index_vector.end(), - coarse_cell_id, - [](const auto &pair, const auto &val) { - return pair.first < val; - }); + const auto coarse_cell_index = std::lower_bound( + coarse_cell_id_to_coarse_cell_index_vector.begin(), + coarse_cell_id_to_coarse_cell_index_vector.end(), + coarse_cell_id, + [](const std::pair &pair, + const types::coarse_cell_id &val) { return pair.first < val; }); Assert(coarse_cell_index != coarse_cell_id_to_coarse_cell_index_vector.cend(), ExcMessage("Coarse cell index not found!")); -- 2.39.5