From: Peter Munch Date: Wed, 18 Sep 2019 08:45:36 +0000 (+0200) Subject: Remove an auto from a lambda in pft X-Git-Tag: v9.2.0-rc1~1085^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4492b649c4774f718d04a14f860bff0ab58f39e;p=dealii.git Remove an auto from a lambda in pft --- 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!"));