diff --git a/core/future.hh b/core/future.hh index 9018081bf3..b5598b0a8e 100644 --- a/core/future.hh +++ b/core/future.hh @@ -593,7 +593,7 @@ public: return f; } - future<> or_terminate() && noexcept { + future<> or_terminate() noexcept { return then_wrapped([] (auto&& f) { try { f.get();