From: Wolfgang Bangerth Date: Sat, 2 May 2020 18:18:00 +0000 (-0600) Subject: Avoid a few more uses of 'decltype' in step-69. X-Git-Tag: v9.2.0-rc1~57^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8f787c61d920bef92e34e6e107411ed0d53c01c;p=dealii.git Avoid a few more uses of 'decltype' in step-69. --- 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());