From: Martin Kronbichler Date: Thu, 29 Oct 2020 09:29:07 +0000 (+0100) Subject: Do not use a reference in range-based for over IndexSet X-Git-Tag: v9.3.0-rc1~954^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09346416e2197adcb066db048d6528a4f72c8126;p=dealii.git Do not use a reference in range-based for over IndexSet --- diff --git a/include/deal.II/numerics/vector_tools_interpolate.templates.h b/include/deal.II/numerics/vector_tools_interpolate.templates.h index b9dcad1d97..ace6175041 100644 --- a/include/deal.II/numerics/vector_tools_interpolate.templates.h +++ b/include/deal.II/numerics/vector_tools_interpolate.templates.h @@ -599,7 +599,7 @@ namespace VectorTools // Compute the mean value of the sum which has been placed in // each entry of the output vector only at locally owned elements. - for (const auto &i : data_2.locally_owned_elements()) + for (const auto i : data_2.locally_owned_elements()) { const number touch_count_i = ::dealii::internal::ElementAccess::get(touch_count, i);