From: Wolfgang Bangerth Date: Tue, 1 Feb 2022 18:04:23 +0000 (-0700) Subject: Also convert the has_begin_and_end query. X-Git-Tag: v9.4.0-rc1~538^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b62f15347c0df3359808cb8fdf055ba83d3fd17;p=dealii.git Also convert the has_begin_and_end query. --- diff --git a/include/deal.II/base/template_constraints.h b/include/deal.II/base/template_constraints.h index 1d0e3b4ba2..1d39f1b1d7 100644 --- a/include/deal.II/base/template_constraints.h +++ b/include/deal.II/base/template_constraints.h @@ -234,8 +234,8 @@ using begin_and_end_t = decltype(std::begin(std::declval()), std::end(std::declval())); template -using has_begin_and_end = - internal::SupportsOperation::is_detected; +constexpr bool has_begin_and_end = + internal::is_supported_operation; diff --git a/include/deal.II/base/work_stream.h b/include/deal.II/base/work_stream.h index 30f09e6bfe..ad9045e047 100644 --- a/include/deal.II/base/work_stream.h +++ b/include/deal.II/base/work_stream.h @@ -1213,7 +1213,7 @@ namespace WorkStream typename ScratchData, typename CopyData, typename = typename std::enable_if< - has_begin_and_end::value>::type> + has_begin_and_end>::type> void run(IteratorRangeType iterator_range, Worker worker, @@ -1437,7 +1437,7 @@ namespace WorkStream typename ScratchData, typename CopyData, typename = typename std::enable_if< - has_begin_and_end::value>::type> + has_begin_and_end>::type> void run(IteratorRangeType iterator_range, MainClass & main_object,