From: Matthias Maier Date: Tue, 31 Mar 2015 12:21:38 +0000 (+0200) Subject: Bugfix: Do not use c++11 features in get_all_vertices_at_boundary X-Git-Tag: v8.3.0-rc1~334^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=663a8e552d45df53a0baf1c0b90da40c36d80e04;p=dealii.git Bugfix: Do not use c++11 features in get_all_vertices_at_boundary --- diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index a3c6a9304b..5401887b7a 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -769,7 +769,7 @@ namespace GridTools } template - std::map > + std::map > get_all_vertices_at_boundary (const Triangulation &tria) { std::map > vertex_map; @@ -780,13 +780,14 @@ namespace GridTools { for (unsigned int i=0; i::faces_per_cell; ++i) { - const auto face = cell->face(i); + const typename Triangulation::face_iterator &face + = cell->face(i); if (face->at_boundary()) { for (unsigned j = 0; j < GeometryInfo::vertices_per_face; ++j) { - const auto vertex = face->vertex(j); - const auto vertex_index = face->vertex_index(j); + const Point &vertex = face->vertex(j); + const unsigned int vertex_index = face->vertex_index(j); vertex_map[vertex_index] = vertex; } }