From: Matthias Maier Date: Mon, 14 Sep 2015 15:38:56 +0000 (-0500) Subject: gcc-4.6: Avoid unsupported initializer list usage X-Git-Tag: v8.4.0-rc2~423^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1602%2Fhead;p=dealii.git gcc-4.6: Avoid unsupported initializer list usage --- diff --git a/tests/base/tensor_accessors_02.cc b/tests/base/tensor_accessors_02.cc index ceeeb1bd54..965ad27e79 100644 --- a/tests/base/tensor_accessors_02.cc +++ b/tests/base/tensor_accessors_02.cc @@ -76,8 +76,10 @@ int main() // via std::array + // via std::array: #ifdef DEAL_II_WITH_CXX11 - deallog << TensorAccessors::extract<5>(foo, std::array({2, 1, 0, 2, 1})) << std::endl; + std::array temp {2, 1, 0, 2, 1}; + deallog << TensorAccessors::extract<5>(foo, temp) << std::endl; #else deallog << 42. << std::endl; #endif