From: Daniel Arndt Date: Thu, 19 Sep 2019 02:41:45 +0000 (-0600) Subject: Unify style X-Git-Tag: v9.2.0-rc1~1074^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8794%2Fhead;p=dealii.git Unify style --- diff --git a/include/deal.II/base/patterns.h b/include/deal.II/base/patterns.h index 413781ec15..7527753ba1 100644 --- a/include/deal.II/base/patterns.h +++ b/include/deal.II/base/patterns.h @@ -1439,7 +1439,7 @@ namespace Patterns "are derived from PatternBase"); static_assert(sizeof...(ps) > 0, "The number of PatternTypes must be greater than zero!"); - const auto &pattern_pointers = {(static_cast(&ps))...}; + const auto pattern_pointers = {(static_cast(&ps))...}; for (const auto p : pattern_pointers) patterns.push_back(p->clone()); } diff --git a/include/deal.II/hp/fe_collection.h b/include/deal.II/hp/fe_collection.h index 613d9392ee..2f9978e007 100644 --- a/include/deal.II/hp/fe_collection.h +++ b/include/deal.II/hp/fe_collection.h @@ -834,8 +834,8 @@ namespace hp // loop over all of the given arguments and add the finite elements to // this collection. Inlining the definition of fe_pointers causes internal // compiler errors on GCC 7.1.1 so we define it separately: - const auto &fe_pointers = - std::initializer_list *>{&fes...}; + const auto fe_pointers = { + (static_cast *>(&fes))...}; for (const auto p : fe_pointers) push_back(*p); } diff --git a/include/deal.II/hp/q_collection.h b/include/deal.II/hp/q_collection.h index ecdc5d8384..0b5bd091d8 100644 --- a/include/deal.II/hp/q_collection.h +++ b/include/deal.II/hp/q_collection.h @@ -156,8 +156,8 @@ namespace hp // loop over all of the given arguments and add the quadrature objects to // this collection. Inlining the definition of q_pointers causes internal // compiler errors on GCC 7.1.1 so we define it separately: - const auto &q_pointers = - std::initializer_list *>{&quadrature_objects...}; + const auto q_pointers = { + (static_cast *>(&quadrature_objects))...}; for (const auto p : q_pointers) push_back(*p); }