From: Wolfgang Bangerth Date: Wed, 20 Mar 2024 13:02:57 +0000 (-0600) Subject: Make sure two cell iterator arguments lead to correct type deduction. X-Git-Tag: v9.6.0-rc1~470^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce2eb2e88dae9c7145d3b3ad535837605dc9dea4;p=dealii.git Make sure two cell iterator arguments lead to correct type deduction. --- 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())