Skip to content

Commit

Permalink
Un-remove get_env tag invokes from cpp17 version
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorostsa committed Aug 17, 2024
1 parent fb184e2 commit 13e83ce
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,15 +528,15 @@ struct custom_sender
std::atomic<bool>& connect_called;
std::atomic<bool>& tag_invoke_overload_called;

#if defined(HPX_HAVE_STDEXEC)
template <typename Env>
friend auto tag_invoke(
hpx::execution::experimental::get_completion_signatures_t,
custom_sender const&, Env&&)
-> hpx::execution::experimental::completion_signatures<
hpx::execution::experimental::set_value_t(),
hpx::execution::experimental::set_error_t(std::exception_ptr)>;
#else

#if !defined(HPX_HAVE_STDEXEC)
template <template <class...> class Tuple,
template <class...> class Variant>
using value_types = Variant<Tuple<>>;
Expand Down Expand Up @@ -577,7 +577,7 @@ struct custom_sender_multi_tuple
std::atomic<bool>& tag_invoke_overload_called;

bool expect_set_value = true;
#if defined(HPX_HAVE_STDEXEC)

template <typename Env>
friend auto tag_invoke(
hpx::execution::experimental::get_completion_signatures_t,
Expand All @@ -586,7 +586,8 @@ struct custom_sender_multi_tuple
hpx::execution::experimental::set_value_t(int),
hpx::execution::experimental::set_value_t(std::string),
hpx::execution::experimental::set_error_t(std::exception_ptr)>;
#else

#if !defined(HPX_HAVE_STDEXEC)
template <template <class...> class Tuple,
template <class...> class Variant>
using value_types = Variant<Tuple<>>;
Expand Down

0 comments on commit 13e83ce

Please sign in to comment.