From ca2a37853397bde64c9f0bddb1102a2d621f1ec1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 14 Aug 2014 23:04:39 -0500 Subject: [PATCH] Replace use of 'auto' for variables. This is only allowed in C++11. --- tests/manifold/cylindrical_manifold_01.cc | 4 ++-- tests/manifold/function_manifold_01.cc | 4 ++-- tests/manifold/spherical_manifold_01.cc | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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); } -- 2.39.5