From ce2eb2e88dae9c7145d3b3ad535837605dc9dea4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 20 Mar 2024 07:02:57 -0600 Subject: [PATCH] Make sure two cell iterator arguments lead to correct type deduction. --- include/deal.II/base/quadrature_point_data.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/deal.II/base/quadrature_point_data.h b/include/deal.II/base/quadrature_point_data.h index 3e7e283445..edced53a0d 100644 --- a/include/deal.II/base/quadrature_point_data.h +++ b/include/deal.II/base/quadrature_point_data.h @@ -110,9 +110,10 @@ public: */ template void - initialize(const CellIteratorType &cell_start, - const CellIteratorType &cell_end, - const unsigned int number_of_data_points_per_cell); + initialize( + const CellIteratorType &cell_start, + const typename std_cxx20::type_identity::type &cell_end, + const unsigned int number_of_data_points_per_cell); /** * Removes data stored at the @p cell. Returns true if the data was removed. @@ -630,9 +631,9 @@ template template inline void CellDataStorage::initialize( - const CellIteratorType &cell_start, - const CellIteratorType &cell_end, - const unsigned int number) + const CellIteratorType &cell_start, + const typename std_cxx20::type_identity::type &cell_end, + const unsigned int number) { for (CellIteratorType it = cell_start; it != cell_end; ++it) if (it->is_locally_owned()) -- 2.39.5