diff --git a/include/stdexec/__detail/__when_all.hpp b/include/stdexec/__detail/__when_all.hpp index 305bf4f57..014bed231 100644 --- a/include/stdexec/__detail/__when_all.hpp +++ b/include/stdexec/__detail/__when_all.hpp @@ -766,6 +766,9 @@ namespace STDEXEC } static constexpr auto __get_env = [](__ignore, _State const & __state) noexcept + -> __if_c<_State::__uses_stop_source, + __stoppable_env_t>, + env_of_t> { if constexpr (_State::__uses_stop_source) {