From: Wolfgang Bangerth Date: Tue, 21 Mar 2023 19:33:37 +0000 (-0600) Subject: Use assignable_from instead of convertible_to concepts in parallel.h. X-Git-Tag: v9.5.0-rc1~437^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14933%2Fhead;p=dealii.git Use assignable_from instead of convertible_to concepts in parallel.h. --- diff --git a/include/deal.II/base/parallel.h b/include/deal.II/base/parallel.h index 106493dfe0..4da420b7eb 100644 --- a/include/deal.II/base/parallel.h +++ b/include/deal.II/base/parallel.h @@ -135,8 +135,8 @@ namespace parallel template DEAL_II_CXX20_REQUIRES( (std::invocable && - std::convertible_to, - decltype(*std::declval())>)) + std::assignable_from()), + std::invoke_result_t>)) void transform(const InputIterator &begin_in, const InputIterator &end_in, OutputIterator out, @@ -197,9 +197,9 @@ namespace parallel typename Function> DEAL_II_CXX20_REQUIRES( (std::invocable && - std::convertible_to< - std::invoke_result_t, - decltype(*std::declval())>)) + std::assignable_from< + decltype(*std::declval()), + std::invoke_result_t>)) void transform(const InputIterator1 &begin_in1, const InputIterator1 &end_in1, InputIterator2 in2, @@ -263,11 +263,11 @@ namespace parallel typename Function> DEAL_II_CXX20_REQUIRES( (std::invocable && - std::convertible_to, - decltype(*std::declval())>)) + std::assignable_from()), + std::invoke_result_t>)) void transform(const InputIterator1 &begin_in1, const InputIterator1 &end_in1, InputIterator2 in2,