]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use explicit constructor for iota_view. 18154/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 21 Feb 2025 05:50:10 +0000 (22:50 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 21 Feb 2025 05:50:37 +0000 (22:50 -0700)
include/deal.II/fe/fe_coupling_values.h

index 7fdc9c06edff65de1554e5462aea4a29e507bfe6..a79e26fc584f2036e2e1ed4b90b00a6e7757b4c1 100644 (file)
@@ -1634,7 +1634,8 @@ template <int dim1, int dim2, int spacedim>
 inline std_cxx20::ranges::iota_view<unsigned int, unsigned int>
 FECouplingValues<dim1, dim2, spacedim>::quadrature_point_indices() const
 {
-  return {0U, n_quadrature_points_};
+  return std_cxx20::ranges::iota_view<unsigned int, unsigned int>(
+    0U, n_quadrature_points_);
 }
 
 
@@ -1646,7 +1647,8 @@ FECouplingValues<dim1, dim2, spacedim>::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<unsigned int, unsigned int>(
+    0U, n_coupling_dofs_);
 }
 
 
@@ -1655,7 +1657,8 @@ template <int dim1, int dim2, int spacedim>
 inline std_cxx20::ranges::iota_view<unsigned int, unsigned int>
 FECouplingValues<dim1, dim2, spacedim>::first_dof_indices() const
 {
-  return {0U, n_first_dofs()};
+  return std_cxx20::ranges::iota_view<unsigned int, unsigned int>(
+    0U, n_first_dofs());
 }
 
 
@@ -1664,7 +1667,8 @@ template <int dim1, int dim2, int spacedim>
 inline std_cxx20::ranges::iota_view<unsigned int, unsigned int>
 FECouplingValues<dim1, dim2, spacedim>::second_dof_indices() const
 {
-  return {0U, n_second_dofs()};
+  return std_cxx20::ranges::iota_view<unsigned int, unsigned int>(
+    0U, n_second_dofs());
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.