]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Unify style 8794/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 19 Sep 2019 02:41:45 +0000 (20:41 -0600)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 19 Sep 2019 02:41:45 +0000 (20:41 -0600)
include/deal.II/base/patterns.h
include/deal.II/hp/fe_collection.h
include/deal.II/hp/q_collection.h

index 413781ec151623b92ca8820819ed8e27fff1b737..7527753ba1a07da422aed8bd1109eaa01ad2b87e 100644 (file)
@@ -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<const PatternBase *>(&ps))...};
+    const auto pattern_pointers = {(static_cast<const PatternBase *>(&ps))...};
     for (const auto p : pattern_pointers)
       patterns.push_back(p->clone());
   }
index 613d9392ee459f63071915f3d2ce8532ff858e5e..2f9978e007fc98ea8482fc06ddc0ec453edc8a3c 100644 (file)
@@ -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<const FiniteElement<dim, spacedim> *>{&fes...};
+    const auto fe_pointers = {
+      (static_cast<const FiniteElement<dim, spacedim> *>(&fes))...};
     for (const auto p : fe_pointers)
       push_back(*p);
   }
index ecdc5d8384f8f2cde2cbf3cf2faeb5b489d89c11..0b5bd091d8f1869cf54ef64b7c906ae4c8f57d0c 100644 (file)
@@ -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<const Quadrature<dim> *>{&quadrature_objects...};
+    const auto q_pointers = {
+      (static_cast<const Quadrature<dim> *>(&quadrature_objects))...};
     for (const auto p : q_pointers)
       push_back(*p);
   }

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.