From 8bd023c2a632e8e8f6143357c8526b49d543217e Mon Sep 17 00:00:00 2001 From: Maarten Arnst Date: Wed, 26 Aug 2026 13:11:48 +0200 Subject: [PATCH] Add trailing return type to when_all get_env Signed-off-by: Maarten Arnst --- include/stdexec/__detail/__when_all.hpp | 3 +++ 1 file changed, 3 insertions(+) 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) {