]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not use 'typename' outside templates. 3195/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 4 Oct 2016 20:25:42 +0000 (14:25 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 4 Oct 2016 20:48:19 +0000 (14:48 -0600)
tests/grid/vertex_iterator.cc

index 477a2702ab44af2716e508ee0456e0e713476daa..5fbfc0e01953b1f7498095d3579f9a16628124ce 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2015 by the deal.II authors
+// Copyright (C) 2015, 2016 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -32,13 +32,13 @@ void test ()
   GridGenerator::hyper_cube (tria);
   tria.refine_global (2);
 
-  for (typename Triangulation<2>::vertex_iterator
+  for (Triangulation<2>::vertex_iterator
        vertex_it = tria.begin_vertex(); vertex_it != tria.end_vertex();
        ++vertex_it)
     deallog << vertex_it->center() <<std::endl;
   deallog << std::endl;
 
-  for (typename Triangulation<2>::active_cell_iterator
+  for (Triangulation<2>::active_cell_iterator
        cell = tria.begin_active(); cell != tria.end(); ++cell)
     {
       for (unsigned int i=0; i<4; ++i)
@@ -46,7 +46,7 @@ void test ()
       deallog << std::endl;
     }
 
-  for (typename Triangulation<2>::active_cell_iterator
+  for (Triangulation<2>::active_cell_iterator
        cell = tria.begin_active(); cell != tria.end(); ++cell)
     for (unsigned int i=0; i<4; ++i)
       {

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.