diff --git a/include/beman/execution/detail/completion_domain.hpp b/include/beman/execution/detail/completion_domain.hpp index ea345ad6..f9d1e72e 100644 --- a/include/beman/execution/detail/completion_domain.hpp +++ b/include/beman/execution/detail/completion_domain.hpp @@ -43,7 +43,7 @@ template ); - auto get = [&sender](Tag) { + constexpr auto get = [](Tag, const Sender& sender) { if constexpr (requires { ::beman::execution::get_domain( ::beman::execution::get_completion_scheduler(::beman::execution::get_env(sender))); @@ -56,9 +56,9 @@ constexpr auto completion_domain(const Sender& sender) noexcept { }; using type = typename completion_domain_merge< - typename completion_domain_merge::type, - decltype(get(::beman::execution::set_value))>::type; + typename completion_domain_merge::type, + decltype(get(::beman::execution::set_value, sender))>::type; return ::std::conditional_t< ::std::same_as, Default, type>(); } } // namespace beman::execution::detail