future: avoid generalized lambda in forward_to()
Crashes gdb with -O0.
This commit is contained in:
@@ -341,7 +341,7 @@ public:
|
||||
if (state()->available()) {
|
||||
state()->forward_to(pr);
|
||||
} else {
|
||||
_promise->schedule([pr = std::move(pr)] (auto& state) mutable {
|
||||
_promise->schedule([pr = std::move(pr)] (future_state<T...>& state) mutable {
|
||||
state.forward_to(pr);
|
||||
});
|
||||
_promise->_future = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user