Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions include/stdexec/__detail/__let.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,23 +624,31 @@ namespace STDEXEC
static_assert(__sender_for<_CvSender, _LetTag>);
using __child_t = __child_of<_CvSender>;
auto __completions = STDEXEC::get_completion_signatures<__child_t, _Env...>();
auto __transform = __get_transform_fn<__fn_t<_CvSender>, __child_t, _Env...>();
if constexpr (!__decay_copyable<_CvSender>)
{
return STDEXEC::__throw_compile_time_error<_SENDER_TYPE_IS_NOT_DECAY_COPYABLE_,
_WITH_PRETTY_SENDER_<_CvSender>>();
}
else if constexpr (__t<_LetTag>() == STDEXEC::set_value)
{
return STDEXEC::__transform_completion_signatures(__completions, __transform);
}
else if constexpr (__t<_LetTag>() == STDEXEC::set_error)

if constexpr (STDEXEC::sender_in<__child_t, _Env...>)
{
return STDEXEC::__transform_completion_signatures(__completions, {}, __transform);
auto __transform = __get_transform_fn<__fn_t<_CvSender>, __child_t, _Env...>();
if constexpr (!__decay_copyable<_CvSender>)
{
return STDEXEC::__throw_compile_time_error<_SENDER_TYPE_IS_NOT_DECAY_COPYABLE_,
_WITH_PRETTY_SENDER_<_CvSender>>();
}
else if constexpr (__t<_LetTag>() == STDEXEC::set_value)
{
return STDEXEC::__transform_completion_signatures(__completions, __transform);
}
else if constexpr (__t<_LetTag>() == STDEXEC::set_error)
{
return STDEXEC::__transform_completion_signatures(__completions, {}, __transform);
}
else
{
return STDEXEC::__transform_completion_signatures(__completions, {}, {}, __transform);
}
}
else
{
return STDEXEC::__transform_completion_signatures(__completions, {}, {}, __transform);
return __completions;
}
}

Expand Down