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=refs%2Fpull%2F8784%2Fhead;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!"));