]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a couple more files that accidentally use C++11 auto variables. 90/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 Aug 2014 10:27:03 +0000 (05:27 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 18 Aug 2014 10:27:03 +0000 (05:27 -0500)
tests/manifold/cylindrical_manifold_02.cc
tests/manifold/function_manifold_02.cc

index 77cc1e5048c60ce7afc899d485ae4c07555560fc..61ca6730a2c6e525e9c2e45b4b06bfd7e805e866 100644 (file)
@@ -1,5 +1,5 @@
 //----------------------------  cylindrical_manifold_01.cc  ---------------------------
-//    Copyright (C) 2011, 2013 by the mathLab team.
+//    Copyright (C) 2011, 2013, 2014 by the mathLab team.
 //
 //    This file is subject to LGPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -38,7 +38,7 @@ void test(unsigned int ref=1)
   Triangulation<dim,spacedim> tria;
   GridGenerator::cylinder_shell (tria, .5, .1, .25);
 
-  for(auto cell = tria.begin_active(); cell != tria.end(); ++cell) {
+  for(typename Triangulation<dim,spacedim>::active_cell_iterator cell = tria.begin_active(); cell != tria.end(); ++cell) {
     cell->set_all_manifold_ids(1);
   }
   
index e5f0c37cbd352027a7fd5d0f428bece047c44f02..47812572c46f25d343aa51252864312ca1b79375 100644 (file)
@@ -1,5 +1,5 @@
 //----------------------------  function_manifold_chart ---------------------------
-//    Copyright (C) 2011, 2013 by the mathLab team.
+//    Copyright (C) 2011, 2013, 2014 by the mathLab team.
 //
 //    This file is subject to LGPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -55,7 +55,7 @@ void test(unsigned int ref=1)
   Triangulation<dim,spacedim> tria;
   GridGenerator::hyper_cube (tria, 0, 1);
 
-  for(auto cell = tria.begin_active(); cell != tria.end(); ++cell) {
+  for(typename Triangulation<dim,spacedim>::active_cell_iterator cell = tria.begin_active(); cell != tria.end(); ++cell) {
     cell->set_all_manifold_ids(1);
   }
   

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.