]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
gcc 2.95 did not like the old version
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Apr 2003 12:08:29 +0000 (12:08 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Apr 2003 12:08:29 +0000 (12:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@7443 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/anisotropic_2.cc

index 6fd4d51846b6904a92fd7d881b1cf42743c64316..dba4346432fca984354dc2c2e02f6fe5445fe4a6 100644 (file)
@@ -59,15 +59,15 @@ void check_2d ()
   {
     PolVector pols[2] = { Pol::generate_complete_basis (3),
                           Pol::generate_complete_basis (1) };
-    AnisotropicPolynomials<2> aniso (std::vector<PolVector>(&pols[0],
-                                                            &pols[2]));
+    std::vector<PolVector> p(&pols[0], &pols[2]);
+    AnisotropicPolynomials<2> aniso (p);
     print_2d (aniso);
   }
   {
     PolVector pols[2] = { Pol::generate_complete_basis (2),
                           Pol::generate_complete_basis (3) };
-    AnisotropicPolynomials<2> aniso (std::vector<PolVector>(&pols[0],
-                                                            &pols[2]));
+    std::vector<PolVector> p(&pols[0], &pols[2]);
+    AnisotropicPolynomials<2> aniso (p);
 
     print_2d (aniso);
   }
@@ -112,24 +112,24 @@ void check_3d ()
     PolVector pols[3] = { Pol::generate_complete_basis (3),
                           Pol::generate_complete_basis (1),
                           Pol::generate_complete_basis (1) };
-    AnisotropicPolynomials<3> aniso (std::vector<PolVector>(&pols[0],
-                                                            &pols[3]));
+    std::vector<PolVector> p(&pols[0], &pols[3]);
+    AnisotropicPolynomials<3> aniso (p);
     print_3d (aniso);
   }
   {
     PolVector pols[3] = { Pol::generate_complete_basis (1),
                           Pol::generate_complete_basis (3),
                           Pol::generate_complete_basis (1) };
-    AnisotropicPolynomials<3> aniso (std::vector<PolVector>(&pols[0],
-                                                            &pols[3]));
+    std::vector<PolVector> p(&pols[0], &pols[3]);
+    AnisotropicPolynomials<3> aniso (p);
     print_3d (aniso);
   }
   {
     PolVector pols[3] = { Pol::generate_complete_basis (1),
                           Pol::generate_complete_basis (2),
                           Pol::generate_complete_basis (3) };
-    AnisotropicPolynomials<3> aniso (std::vector<PolVector>(&pols[0],
-                                                            &pols[3]));
+    std::vector<PolVector> p(&pols[0], &pols[3]);
+    AnisotropicPolynomials<3> aniso (p);
     print_3d (aniso);
   }
 }

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.