]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Try to use std::make_tuple() to get around compiler warnings. 14421/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 Nov 2022 16:58:47 +0000 (09:58 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 Nov 2022 16:58:47 +0000 (09:58 -0700)
source/base/data_out_base.cc

index a52000ebaa5144a101e285dc1ce2fcccd473d0b7..5fc55469b9d2182fdd1bd2589bbf32b3f3441490 100644 (file)
@@ -1153,7 +1153,7 @@ namespace
           }
       }
 
-    return std::tuple<unsigned int, unsigned int>(n_nodes, n_cells);
+    return std::make_tuple(n_nodes, n_cells);
   }
 
 
@@ -1209,8 +1209,7 @@ namespace
           }
       }
 
-    return std::tuple<unsigned int, unsigned int, unsigned int>(
-      n_nodes, n_cells, n_points_and_n_cells);
+    return std::make_tuple(n_nodes, n_cells, n_points_and_n_cells);
   }
 
   /**

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.