From: Martin Kronbichler Date: Thu, 29 Oct 2020 11:50:21 +0000 (+0100) Subject: Do not capture by reference for iota_view X-Git-Tag: v9.3.0-rc1~954^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b83faecea6da6d5469cc4dfa9c20d5345a435ee4;p=dealii.git Do not capture by reference for iota_view --- diff --git a/source/grid/grid_out.cc b/source/grid/grid_out.cc index 2a6aa1cc8e..9c8755647b 100644 --- a/source/grid/grid_out.cc +++ b/source/grid/grid_out.cc @@ -889,7 +889,7 @@ GridOut::write_dx(const Triangulation &tria, for (const auto &cell : tria.active_cell_iterators()) { - for (const auto f : cell->face_indices()) + for (const unsigned int f : cell->face_indices()) { typename Triangulation::face_iterator face = cell->face(f); @@ -919,7 +919,7 @@ GridOut::write_dx(const Triangulation &tria, for (const auto &cell : tria.active_cell_iterators()) { // Little trick to get -1 for the interior - for (auto f : GeometryInfo::face_indices()) + for (unsigned int f : GeometryInfo::face_indices()) { out << ' ' << static_cast::type>( @@ -4438,7 +4438,7 @@ namespace internal case 2: { for (const auto &cell : tria.active_cell_iterators()) - for (const auto &line_no : cell->line_indices()) + for (const unsigned int line_no : cell->line_indices()) { typename dealii::Triangulation::line_iterator line = cell->line(line_no); @@ -4608,7 +4608,7 @@ namespace internal for (const auto &cell : tria.active_cell_iterators()) - for (const auto &line_no : cell->line_indices()) + for (const unsigned int line_no : cell->line_indices()) { typename dealii::Triangulation::line_iterator line = cell->line(line_no); @@ -4797,7 +4797,7 @@ namespace internal // doing this multiply std::set treated_vertices; for (const auto &cell : tria.active_cell_iterators()) - for (const auto &vertex_no : cell->vertex_indices()) + for (const unsigned int vertex_no : cell->vertex_indices()) if (treated_vertices.find(cell->vertex_index(vertex_no)) == treated_vertices.end()) {