From: Bruno Turcksin Date: Wed, 10 Mar 2021 03:35:49 +0000 (+0000) Subject: Deleter takes a pointer not a reference X-Git-Tag: v9.3.0-rc1~351^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11876%2Fhead;p=dealii.git Deleter takes a pointer not a reference --- diff --git a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h index 840cbb8a18..9baebafd6e 100644 --- a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h +++ b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h @@ -1947,7 +1947,7 @@ namespace MGTransferGlobalCoarseningTools std::vector>> 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 });