From: Matthias Maier Date: Thu, 20 Sep 2018 03:44:27 +0000 (-0500) Subject: make apple-clang happy X-Git-Tag: v9.1.0-rc1~701^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6781%2Fhead;p=dealii.git make apple-clang happy --- diff --git a/examples/step-7/step-7.cc b/examples/step-7/step-7.cc index 570892df25..0177ead3b0 100644 --- a/examples/step-7/step-7.cc +++ b/examples/step-7/step-7.cc @@ -122,14 +122,14 @@ namespace Step7 // it doesn't have to generate the variable from a template by substituting // dim, but can immediately use the following definition: template <> - const std::array, 3> SolutionBase<1>::source_centers = - {Point<1>(-1.0 / 3.0), Point<1>(0.0), Point<1>(+1.0 / 3.0)}; + const std::array, 3> SolutionBase<1>::source_centers = { + {Point<1>(-1.0 / 3.0), Point<1>(0.0), Point<1>(+1.0 / 3.0)}}; // Likewise, we can provide an explicit specialization for // dim=2. We place the centers for the 2d case as follows: template <> - const std::array, 3> SolutionBase<2>::source_centers = - {Point<2>(-0.5, +0.5), Point<2>(-0.5, -0.5), Point<2>(+0.5, -0.5)}; + const std::array, 3> SolutionBase<2>::source_centers = { + {Point<2>(-0.5, +0.5), Point<2>(-0.5, -0.5), Point<2>(+0.5, -0.5)}}; // There remains to assign a value to the half-width of the exponentials. We // would like to use the same value for all dimensions. In this case, we