]> https://gitweb.dealii.org/ - dealii.git/commitdiff
do not elide initializer list braces
authorTimo Heister <timo.heister@gmail.com>
Tue, 1 Sep 2015 21:17:45 +0000 (17:17 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 2 Sep 2015 14:40:22 +0000 (10:40 -0400)
This fixes the test on intel 15.

tests/lac/block_linear_operator_03.cc

index 4ec6e5ecf84e0b188a7d2ad966a8c1f18c73d5af..ca6f2137dfc7dc7bf41059c0e0af89161060e81a 100644 (file)
@@ -41,8 +41,10 @@ int main()
 
   auto op_a = LinearOperator<>();
 
+
   {
-    std::array<std::array<decltype(op_a), 2>, 2> temp {op_a, op_a, op_a, op_a};
+    std::array<decltype(op_a), 2> a {{op_a, op_a}};
+    std::array<std::array<decltype(op_a), 2>, 2> temp {{a,a}};
 
     BlockLinearOperator<> op_b(temp);
     auto op_c = block_operator<2, 2, BlockVector<double>>(temp);
@@ -53,7 +55,7 @@ int main()
   }
 
   {
-    std::array<decltype(op_a), 2> temp {op_a, op_a};
+    std::array<decltype(op_a), 2> temp {{op_a, op_a}};
 
     auto op_c = block_diagonal_operator<2, BlockVector<double>>(temp);
     op_c = temp;

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.