]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using std::make_pair and just use a brace-enclosed list. 6596/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 May 2018 07:03:26 +0000 (15:03 +0800)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 May 2018 07:03:26 +0000 (15:03 +0800)
source/distributed/tria.cc

index bc7bc40137c966c1694b6b381f6463027babe4a6..7509965a7c4f2c25fb68d5971a8bd596caa3274b 100644 (file)
@@ -3239,10 +3239,10 @@ namespace parallel
 #endif
 
       // add new pair with offset and pack_callback
-      cell_attached_data.pack_callbacks.push_back(
-        std::make_pair(cell_attached_data.cumulative_fixed_data_size + sizeof(CellStatus),
-                       pack_callback)
-      );
+      cell_attached_data.pack_callbacks.push_back({ cell_attached_data.cumulative_fixed_data_size
+                                                    + sizeof(CellStatus),
+                                                    pack_callback
+                                                  } );
 
       // increase counters
       ++cell_attached_data.n_attached_datas;

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.