From 9432faec011aee78fb56e8c46b57e7d9a1cc84b9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 5 Jan 2021 10:12:54 -0700 Subject: [PATCH] Store value, not reference, in a local variable. --- include/deal.II/particles/utilities.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/particles/utilities.h b/include/deal.II/particles/utilities.h index e3f3bd6fa3..3b60163226 100644 --- a/include/deal.II/particles/utilities.h +++ b/include/deal.II/particles/utilities.h @@ -233,7 +233,7 @@ namespace Particles Assert(pic.begin() == particle, ExcInternalError()); for (unsigned int i = 0; particle != pic.end(); ++particle, ++i) { - const auto &reference_location = + const Point reference_location = particle->get_reference_location(); const auto id = particle->get_id(); -- 2.39.5