]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deleter takes a pointer not a reference 11876/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 10 Mar 2021 03:35:49 +0000 (03:35 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 10 Mar 2021 03:36:55 +0000 (03:36 +0000)
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h

index 840cbb8a1854c365a17bb820fe462f7ff12e8212..9baebafd6e8735d56584986c9ee68047d50bdd55 100644 (file)
@@ -1947,7 +1947,7 @@ namespace MGTransferGlobalCoarseningTools
     std::vector<std::shared_ptr<const Triangulation<dim, spacedim>>>
       coarse_grid_triangulations(fine_triangulation_in.n_global_levels());
 
-    coarse_grid_triangulations.back().reset(&fine_triangulation_in, [](auto &) {
+    coarse_grid_triangulations.back().reset(&fine_triangulation_in, [](auto *) {
       // empty deleter, since fine_triangulation_in is an external field
       // and its destructor is called somewhere else
     });

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.