From: Wolfgang Bangerth Date: Fri, 21 Feb 2025 05:50:10 +0000 (-0700) Subject: Use explicit constructor for iota_view. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=731e18949c21c3f564418391f7bba0d9dd1d1135;p=dealii.git Use explicit constructor for iota_view. --- 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()); }