]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a few more uses of 'decltype' in step-69.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 2 May 2020 18:18:00 +0000 (12:18 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 7 May 2020 12:42:04 +0000 (06:42 -0600)
examples/step-69/step-69.cc

index 8195c459168454a3181e47bbaf693c4d6d0ed567..5bf418310fbd31fd1e15c60a7e466af7484d06e4 100644 (file)
@@ -2102,8 +2102,8 @@ namespace Step69
                                "time_stepping - 3 perform update");
 
       const auto on_subranges =
-        [&](typename decltype(indices_owned)::iterator       i1,
-            const typename decltype(indices_owned)::iterator i2) {
+        [&](std_cxx20::ranges::iota_view<unsigned int>::iterator       i1,
+            const std_cxx20::ranges::iota_view<unsigned int>::iterator i2) {
           for (const auto i : boost::make_iterator_range(i1, i2))
             {
               Assert(i < n_locally_owned, ExcInternalError());
@@ -2352,8 +2352,8 @@ namespace Step69
     // global maxima and minima of the gradients.
     {
       const auto on_subranges = //
-        [&](typename decltype(indices)::iterator       i1,
-            const typename decltype(indices)::iterator i2) {
+        [&](std_cxx20::ranges::iota_view<unsigned int>::iterator       i1,
+            const std_cxx20::ranges::iota_view<unsigned int>::iterator i2) {
           double r_i_max_on_subrange = 0.;
           double r_i_min_on_subrange = std::numeric_limits<double>::infinity();
 
@@ -2437,8 +2437,8 @@ namespace Step69
 
     {
       const auto on_subranges = //
-        [&](typename decltype(indices)::iterator       i1,
-            const typename decltype(indices)::iterator i2) {
+        [&](std_cxx20::ranges::iota_view<unsigned int>::iterator       i1,
+            const std_cxx20::ranges::iota_view<unsigned int>::iterator i2) {
           for (const auto i : boost::make_iterator_range(i1, i2))
             {
               Assert(i < n_locally_owned, ExcInternalError());

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.