From 731e18949c21c3f564418391f7bba0d9dd1d1135 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 20 Feb 2025 22:50:10 -0700 Subject: [PATCH] Use explicit constructor for iota_view. --- include/deal.II/fe/fe_coupling_values.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/deal.II/fe/fe_coupling_values.h b/include/deal.II/fe/fe_coupling_values.h index 7fdc9c06ed..a79e26fc58 100644 --- a/include/deal.II/fe/fe_coupling_values.h +++ b/include/deal.II/fe/fe_coupling_values.h @@ -1634,7 +1634,8 @@ template inline std_cxx20::ranges::iota_view FECouplingValues::quadrature_point_indices() const { - return {0U, n_quadrature_points_}; + return std_cxx20::ranges::iota_view( + 0U, n_quadrature_points_); } @@ -1646,7 +1647,8 @@ FECouplingValues::coupling_dof_indices() const AssertThrow(n_coupling_dofs_ != numbers::invalid_unsigned_int, ExcMessage( "Dofs are independent. You cannot ask for coupling dofs.")); - return {0U, n_coupling_dofs_}; + return std_cxx20::ranges::iota_view( + 0U, n_coupling_dofs_); } @@ -1655,7 +1657,8 @@ template inline std_cxx20::ranges::iota_view FECouplingValues::first_dof_indices() const { - return {0U, n_first_dofs()}; + return std_cxx20::ranges::iota_view( + 0U, n_first_dofs()); } @@ -1664,7 +1667,8 @@ template inline std_cxx20::ranges::iota_view FECouplingValues::second_dof_indices() const { - return {0U, n_second_dofs()}; + return std_cxx20::ranges::iota_view( + 0U, n_second_dofs()); } -- 2.39.5