From a8f787c61d920bef92e34e6e107411ed0d53c01c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 2 May 2020 12:18:00 -0600 Subject: [PATCH] Avoid a few more uses of 'decltype' in step-69. --- examples/step-69/step-69.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/step-69/step-69.cc b/examples/step-69/step-69.cc index 8195c45916..5bf418310f 100644 --- a/examples/step-69/step-69.cc +++ b/examples/step-69/step-69.cc @@ -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::iterator i1, + const std_cxx20::ranges::iota_view::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::iterator i1, + const std_cxx20::ranges::iota_view::iterator i2) { double r_i_max_on_subrange = 0.; double r_i_min_on_subrange = std::numeric_limits::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::iterator i1, + const std_cxx20::ranges::iota_view::iterator i2) { for (const auto i : boost::make_iterator_range(i1, i2)) { Assert(i < n_locally_owned, ExcInternalError()); -- 2.39.5