]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also convert the has_begin_and_end query.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 1 Feb 2022 18:04:23 +0000 (11:04 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 1 Feb 2022 18:04:23 +0000 (11:04 -0700)
include/deal.II/base/template_constraints.h
include/deal.II/base/work_stream.h

index 1d0e3b4ba29d0f6f51d195d656727016119e6bb5..1d39f1b1d7ba6e953992fc25293df5190bebc198 100644 (file)
@@ -234,8 +234,8 @@ using begin_and_end_t =
   decltype(std::begin(std::declval<T>()), std::end(std::declval<T>()));
 
 template <typename T>
-using has_begin_and_end =
-  internal::SupportsOperation::is_detected<begin_and_end_t, T>;
+constexpr bool has_begin_and_end =
+  internal::is_supported_operation<begin_and_end_t, T>;
 
 
 
index 30f09e6bfe8286b7e4da3b215b8fdd0bf64cd24d..ad9045e0471b3086024992630bf46102d9041fd8 100644 (file)
@@ -1213,7 +1213,7 @@ namespace WorkStream
             typename ScratchData,
             typename CopyData,
             typename = typename std::enable_if<
-              has_begin_and_end<IteratorRangeType>::value>::type>
+              has_begin_and_end<IteratorRangeType>>::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<IteratorRangeType>::value>::type>
+              has_begin_and_end<IteratorRangeType>>::type>
   void
   run(IteratorRangeType iterator_range,
       MainClass &       main_object,

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.