From: Wolfgang Bangerth Date: Fri, 15 Aug 2014 04:04:39 +0000 (-0500) Subject: Replace use of 'auto' for variables. This is only allowed in C++11. X-Git-Tag: v8.2.0-rc1~202^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F85%2Fhead;p=dealii.git Replace use of 'auto' for variables. This is only allowed in C++11. --- diff --git a/tests/manifold/cylindrical_manifold_01.cc b/tests/manifold/cylindrical_manifold_01.cc index 62387251e3..71dfd528b6 100644 --- a/tests/manifold/cylindrical_manifold_01.cc +++ b/tests/manifold/cylindrical_manifold_01.cc @@ -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 @@ -37,7 +37,7 @@ void test(unsigned int ref=1) Triangulation tria; GridGenerator::cylinder (tria); - for(auto cell = tria.begin_active(); cell != tria.end(); ++cell) { + for(typename Triangulation::active_cell_iterator cell = tria.begin_active(); cell != tria.end(); ++cell) { cell->set_all_manifold_ids(1); } diff --git a/tests/manifold/function_manifold_01.cc b/tests/manifold/function_manifold_01.cc index 6ae95e893d..ed924a1291 100644 --- a/tests/manifold/function_manifold_01.cc +++ b/tests/manifold/function_manifold_01.cc @@ -1,5 +1,5 @@ //---------------------------- function_manifold --------------------------- -// 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 tria; GridGenerator::hyper_cube (tria, 0, 1); - for(auto cell = tria.begin_active(); cell != tria.end(); ++cell) { + for(typename Triangulation::active_cell_iterator cell = tria.begin_active(); cell != tria.end(); ++cell) { cell->set_all_manifold_ids(1); } diff --git a/tests/manifold/spherical_manifold_01.cc b/tests/manifold/spherical_manifold_01.cc index e645412452..76cd2c4355 100644 --- a/tests/manifold/spherical_manifold_01.cc +++ b/tests/manifold/spherical_manifold_01.cc @@ -1,5 +1,5 @@ //---------------------------- spherical_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 @@ -37,7 +37,7 @@ void test(unsigned int ref=1) Triangulation tria; GridGenerator::hyper_shell (tria, Point(), .3, .6, 12); - for(auto cell = tria.begin_active(); cell != tria.end(); ++cell) { + for(typename Triangulation::active_cell_iterator cell = tria.begin_active(); cell != tria.end(); ++cell) { cell->set_all_manifold_ids(1); }