]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove an auto from a lambda in pft 8784/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 18 Sep 2019 08:45:36 +0000 (10:45 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 18 Sep 2019 08:45:36 +0000 (10:45 +0200)
source/distributed/fully_distributed_tria.cc

index f4fe3720d48c23dce00e524e8206116b1ed0122e..10b7bdfaf9c981e269be7975ece1f2dacc4a04b4 100644 (file)
@@ -484,13 +484,12 @@ namespace parallel
     Triangulation<dim, spacedim>::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<types::coarse_cell_id, unsigned int> &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!"));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.