]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Handle template arguments better in grid_out.cc. 18456/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 16 May 2025 03:40:46 +0000 (21:40 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 16 May 2025 03:42:12 +0000 (21:42 -0600)
source/grid/grid_out.cc

index bfee457ec2aed20c68b6ed53d8e200df2d3665bf..dea3335faeee3988fe0feb1473f2172e5f319b17 100644 (file)
@@ -3123,15 +3123,15 @@ namespace
    * This is made particularly simple because the patch only needs to
    * contain geometry info and additional properties of cells
    */
-  template <int dim, int spacedim, typename ITERATOR, typename END>
+  template <int dim, int spacedim, typename IteratorType>
   void
   generate_triangulation_patches(
     std::vector<DataOutBase::Patch<dim, spacedim>> &patches,
-    ITERATOR                                        cell,
-    const END                                      &end)
+    const IteratorType                             &begin,
+    const std_cxx20::type_identity_t<IteratorType> &end)
   {
     // convert each of the active cells into a patch
-    for (; cell != end; ++cell)
+    for (auto cell = begin; cell != end; ++cell)
       {
         DataOutBase::Patch<dim, spacedim> patch;
         patch.reference_cell = cell->reference_cell();

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.