]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove erroneous 'typename'. 2861/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 25 Jul 2016 17:18:26 +0000 (12:18 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 25 Jul 2016 17:18:26 +0000 (12:18 -0500)
The 'typename' is not necessary (nor allowed, in C++98) here because it is not inside
a template.

source/grid/grid_generator.cc

index e7e8a60e0cb3c173660ca9f35dd2fa9e9eec3eba..35ef4c2142e0ec2abaf9891bf0f2f799139f34c9 100644 (file)
@@ -2440,8 +2440,8 @@ namespace GridGenerator
       cells,
       SubCellData());       // no boundary information
 
-    typename Triangulation<dim>::cell_iterator cell = tria.begin();
-    typename Triangulation<dim>::cell_iterator end = tria.end();
+    Triangulation<dim>::cell_iterator cell = tria.begin();
+    Triangulation<dim>::cell_iterator end = tria.end();
 
     while (cell != end)
       {
@@ -3211,8 +3211,8 @@ namespace GridGenerator
       cells,
       SubCellData());       // no boundary information
 
-    typename Triangulation<dim>::cell_iterator cell = tria.begin();
-    typename Triangulation<dim>::cell_iterator end = tria.end();
+    Triangulation<dim>::cell_iterator cell = tria.begin();
+    Triangulation<dim>::cell_iterator end = tria.end();
 
     while (cell != end)
       {

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.