Skip to content

Commit

Permalink
changed code to make g++ more happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dietmarkuehl committed Aug 19, 2024
1 parent 01f4bf2 commit 5d0d151
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions include/Beman/Execution26/detail/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,28 @@

// ----------------------------------------------------------------------------

namespace Beman::Execution26::Detail
{
template <typename T0, typename T1>
concept decayed_same_as
= ::std::same_as<::std::remove_cvref_t<T0>, ::std::remove_cvref_t<T1>>
;
}
namespace Beman::Execution26
{
template <typename Scheduler>
concept scheduler
= ::Beman::Execution26::Detail::almost_scheduler<Scheduler>
&& requires(Scheduler&& sched) {
{
auto(::Beman::Execution26::get_completion_scheduler<::Beman::Execution26::set_value_t>(
::Beman::Execution26::get_completion_scheduler<::Beman::Execution26::set_value_t>(
::Beman::Execution26::get_env(
::Beman::Execution26::schedule(
::std::forward<Scheduler>(sched)
)
)
))
} -> ::std::same_as<::std::remove_cvref_t<Scheduler>>;
)
} -> ::Beman::Execution26::Detail::decayed_same_as<Scheduler>;
}
;
}
Expand Down

0 comments on commit 5d0d151

Please sign in to comment.