From: guido Date: Tue, 22 Apr 2003 12:08:29 +0000 (+0000) Subject: gcc 2.95 did not like the old version X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a9daa3be486361338fe54c2faef035eb955a73d;p=dealii-svn.git gcc 2.95 did not like the old version git-svn-id: https://svn.dealii.org/trunk@7443 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/anisotropic_2.cc b/tests/base/anisotropic_2.cc index 6fd4d51846..dba4346432 100644 --- a/tests/base/anisotropic_2.cc +++ b/tests/base/anisotropic_2.cc @@ -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(&pols[0], - &pols[2])); + std::vector 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(&pols[0], - &pols[2])); + std::vector 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(&pols[0], - &pols[3])); + std::vector 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(&pols[0], - &pols[3])); + std::vector 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(&pols[0], - &pols[3])); + std::vector p(&pols[0], &pols[3]); + AnisotropicPolynomials<3> aniso (p); print_3d (aniso); } }