future: avoid generalized lambda in forward_to()

Crashes gdb with -O0.
This commit is contained in:
Avi Kivity
2014-10-05 15:44:09 +03:00
parent 4cc5ce93de
commit ef96af29f2

View File

@@ -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;