]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use range-based for loops in include/hp 7586/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 7 Jan 2019 11:00:04 +0000 (12:00 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 10 Jan 2019 19:34:36 +0000 (20:34 +0100)
include/deal.II/hp/fe_collection.h
include/deal.II/hp/q_collection.h

index c078660001cb6bf6f11646421fa461bb647dcda3..a58bef7ea2dcccd4b59e08db768a1d1ae1024190 100644 (file)
@@ -595,7 +595,7 @@ namespace hp
     // 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 = {&fes...};
-    for (auto p : fe_pointers)
+    for (const auto p : fe_pointers)
       push_back(*p);
   }
 
index 3534cb42385667ddd3a5fe9701a0f05eeb8ec036..4a93015aa266e84e4597b93f438439087eadc266 100644 (file)
@@ -157,7 +157,7 @@ namespace hp
     // 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 = {&quadrature_objects...};
-    for (auto p : q_pointers)
+    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.