]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make compile with older compilers.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Jun 2011 03:41:18 +0000 (03:41 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Jun 2011 03:41:18 +0000 (03:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@23819 0785d39b-7218-0410-832d-ea1e28bc413d

tests/serialization/pointer_03.cc
tests/serialization/pointer_04.cc

index 1721d699f77e6dd76e0c62351e0ec025babd1757..69ab798a1876adedfa0dca69239f0c1fac8fbc44 100644 (file)
@@ -78,7 +78,7 @@ void test ()
 {
   {
     C *p = new C();
-    std::pair<C*,C*> pair_1 = {p, p};
+    std::pair<C*,C*> pair_1(p, p);
     std::pair<C*,C*> pair_2;
   
     verify (pair_1, pair_2);
index 44c8944840deb945ba0f05cf4590774c331176e6..96b0cb83542069a7001622eb17a36bfb0913cf85 100644 (file)
@@ -82,7 +82,7 @@ void test ()
 {
   {
     C c;
-    std::pair<C*,C*> pair_1 = {&c, &c};
+    std::pair<C*,C*> pair_1 (&c, &c);
     std::pair<C*,C*> pair_2;
   
     verify (pair_1, pair_2);

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.