]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add casts when taking the address of a template function to prevent internal compiler...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 6 Sep 2007 03:33:29 +0000 (03:33 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 6 Sep 2007 03:33:29 +0000 (03:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@15134 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/cylinder_02.cc
tests/bits/cylinder_03.cc
tests/bits/cylinder_04.cc

index 8b39c6c8e2b2baa0fe07a160832f9b403f9d49e7..de6f9ab38441fcfa37accb0ed22f51db079f06d4 100644 (file)
@@ -48,7 +48,7 @@ void check ()
   Triangulation<dim> triangulation;
   GridGenerator::cylinder (triangulation);
 
-  GridTools::transform (&rotate_to_y<dim>, triangulation);
+  GridTools::transform ((Point<dim> (*)(const Point<dim>&))&rotate_to_y<dim>, triangulation);
   
   static const CylinderBoundary<dim> boundary (1,1);
   triangulation.set_boundary (0, boundary);
index 1904fb2de4add212dec4d88d22c609a5c775ca0d..3e030c1d7ad530eb8493fd78faa794c943691b06 100644 (file)
@@ -45,7 +45,7 @@ void check ()
   Triangulation<dim> triangulation;
   GridGenerator::cylinder (triangulation);
 
-  GridTools::transform (&rotate_to_y<dim>, triangulation);
+  GridTools::transform ((Point<dim> (*)(const Point<dim>&))&rotate_to_y<dim>, triangulation);
   
   static const CylinderBoundary<dim> boundary (1,2);
   triangulation.set_boundary (0, boundary);
index ce8e6d0c8bb511ef14916afbc569f66bdaac0f80..f3d91cf0ef617af1652017d5b1fdea9f4e853a57 100644 (file)
@@ -49,7 +49,7 @@ void check ()
   Triangulation<dim> triangulation;
   GridGenerator::cylinder (triangulation);
 
-  GridTools::transform (&rotate_to_y<dim>, triangulation);
+  GridTools::transform ((Point<dim> (*)(const Point<dim>&))&rotate_to_y<dim>, triangulation);
   
   static const CylinderBoundary<dim> boundary (1,
                                               Point<dim>(std::cos(xy_angle), std::sin(xy_angle), 0),

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.