From 5b72923aefb80893ddf45f25b0bfe49db7e05a98 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 18 Aug 2014 05:27:03 -0500 Subject: [PATCH] Fix a couple more files that accidentally use C++11 auto variables. --- tests/manifold/cylindrical_manifold_02.cc | 4 ++-- tests/manifold/function_manifold_02.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/manifold/cylindrical_manifold_02.cc b/tests/manifold/cylindrical_manifold_02.cc index 77cc1e5048..61ca6730a2 100644 --- a/tests/manifold/cylindrical_manifold_02.cc +++ b/tests/manifold/cylindrical_manifold_02.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 @@ -38,7 +38,7 @@ void test(unsigned int ref=1) Triangulation tria; GridGenerator::cylinder_shell (tria, .5, .1, .25); - 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_02.cc b/tests/manifold/function_manifold_02.cc index e5f0c37cbd..47812572c4 100644 --- a/tests/manifold/function_manifold_02.cc +++ b/tests/manifold/function_manifold_02.cc @@ -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 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); } -- 2.39.5