]> https://gitweb.dealii.org/ - dealii.git/commitdiff
gcc-4.6: Avoid unsupported initializer list usage 1602/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 14 Sep 2015 15:38:56 +0000 (10:38 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 14 Sep 2015 15:39:43 +0000 (10:39 -0500)
tests/base/tensor_accessors_02.cc

index ceeeb1bd548fb911d782a4404bf2353eeec1df5b..965ad27e7902fb6f6b7cf9e0e9a24fc9e08179e3 100644 (file)
@@ -76,8 +76,10 @@ int main()
 
     // via std::array
 
+    // via std::array:
 #ifdef DEAL_II_WITH_CXX11
-    deallog << TensorAccessors::extract<5>(foo, std::array<unsigned int, 5>({2, 1, 0, 2, 1})) << std::endl;
+    std::array<unsigned int, 5> temp {2, 1, 0, 2, 1};
+    deallog << TensorAccessors::extract<5>(foo, temp) << std::endl;
 #else
     deallog << 42. << std::endl;
 #endif

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.