]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid boost::container::small_vector::emplace_back
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 20 Jan 2019 23:09:53 +0000 (00:09 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 21 Jan 2019 09:01:53 +0000 (10:01 +0100)
source/grid/manifold_lib.cc

index 99ea39747bc98c68c6caca4317bd7b8e80ccb78f..c13d73f4053767e3a0f046df3575934244881509 100644 (file)
@@ -2187,7 +2187,8 @@ TransfiniteInterpolationManifold<dim, spacedim>::
             cell->real_to_unit_cell_affine_approximation(points[i]);
           current_distance += GeometryInfo<dim>::distance_to_unit_cell(point);
         }
-      distances_and_cells.emplace_back(current_distance, cell->index());
+      distances_and_cells.push_back(
+        std::make_pair(current_distance, cell->index()));
     }
   // no coarse cell could be found -> transformation failed
   AssertThrow(distances_and_cells.size() > 0,

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.