NVIDIA / stdexec

`std::execution`, the proposed C++ framework for asynchronous and parallel programming.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sender_of<decltype(just(2)), int> is false

RishabhRD opened this issue · comments

  auto work_sender = stdexec::just(2);
  using work_sender_t = std::decay_t<decltype(work_sender)>;
  static_assert(stdexec::sender_of<work_sender_t, int>);

This static assert fails. I am trying to use sender_of to judge if sender completes with certain value type. Is there something I am missing?

Thank You

Closing the issue as just realised it should be sender_of<set_value_t(int)>