Skip to content

Commit a7a2bae

Browse files
committed
added typenames needed by gcc
1 parent 9b8d0dc commit a7a2bae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/beman/execution/detail/spawn_future.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ struct spawn_future_state
150150
::std::lock_guard cerberos(this->gate);
151151
if (this->receiver == nullptr) {
152152
this->receiver = this;
153-
this->fun = [](void*, spawn_future_state::result_t&) noexcept {};
153+
this->fun = [](void*, typename spawn_future_state::result_t&) noexcept {};
154154
this->source.request_stop();
155155
return;
156156
}
157157
}
158158
this->destroy();
159159
}
160160
template <::beman::execution::receiver Rcvr>
161-
static auto complete_receiver(Rcvr& rcvr, spawn_future_state::result_t& res) noexcept {
161+
static auto complete_receiver(Rcvr& rcvr, typename spawn_future_state::result_t& res) noexcept {
162162
std::visit(
163163
[&rcvr]<typename Tuplish>(Tuplish&& tuplish) noexcept {
164164
if constexpr (!::std::same_as<::std::remove_cvref_t<decltype(tuplish)>, ::std::monostate>) {
@@ -177,7 +177,7 @@ struct spawn_future_state
177177
::std::lock_guard cerberos(this->gate);
178178
if (this->receiver != nullptr) {
179179
this->receiver = &rcvr;
180-
this->fun = [](void* ptr, spawn_future_state::result_t& res) noexcept {
180+
this->fun = [](void* ptr, typename spawn_future_state::result_t& res) noexcept {
181181
spawn_future_state::complete_receiver(*static_cast<Rcvr*>(ptr), res);
182182
};
183183
return;
@@ -205,7 +205,7 @@ struct spawn_future_state
205205
Token token;
206206
bool associated{false};
207207
void* receiver{};
208-
auto (*fun)(void*, spawn_future_state::result_t&) noexcept -> void;
208+
auto (*fun)(void*, typename spawn_future_state::result_t&) noexcept -> void;
209209
};
210210

211211
template <::beman::execution::sender Sndr, typename Ev>

0 commit comments

Comments
 (0)