diff --git a/include/seastar/core/future.hh b/include/seastar/core/future.hh index 70fd9aa5d71..2866a032275 100644 --- a/include/seastar/core/future.hh +++ b/include/seastar/core/future.hh @@ -1168,7 +1168,7 @@ struct call_then_impl; template struct call_then_impl> { template - using result_type = futurize_t>; + using result_type = futurize_t>; template using func_type = result_type (T&&...); @@ -1185,7 +1185,7 @@ struct call_then_impl> { template struct call_then_impl>> { template - using result_type = futurize_t>; + using result_type = futurize_t>; template using func_type = result_type (T&&...); @@ -1510,7 +1510,7 @@ private: // Keep this simple so that Named Return Value Optimization is used. template Result then_impl_nrvo(Func&& func) noexcept { - using futurator = futurize>; + using futurator = futurize>; typename futurator::type fut(future_for_get_promise_marker{}); using pr_type = decltype(fut.get_promise()); schedule(fut.get_promise(), std::move(func), [](pr_type&& pr, Func& func, future_state&& state) { @@ -1529,11 +1529,11 @@ private: return fut; } - template >> + template >> Result then_impl(Func&& func) noexcept { #ifndef SEASTAR_DEBUG - using futurator = futurize>; + using futurator = futurize>; if (failed()) { return futurator::make_exception_future(static_cast(get_available_state_ref())); } else if (available()) { @@ -1563,14 +1563,14 @@ public: /// \param func - function to be called when the future becomes available, /// \return a \c future representing the return value of \c func, applied /// to the eventual value of this future. - template > + template > SEASTAR_CONCEPT( requires std::invocable ) futurize_t then_wrapped(Func&& func) & noexcept { return then_wrapped_maybe_erase(std::forward(func)); } - template > + template > SEASTAR_CONCEPT( requires std::invocable ) futurize_t then_wrapped(Func&& func) && noexcept { @@ -1684,7 +1684,7 @@ public: template SEASTAR_CONCEPT( requires std::invocable ) future finally(Func&& func) noexcept { - return then_wrapped(finally_body>::value>(std::forward(func))); + return then_wrapped(finally_body>::value>(std::forward(func))); } @@ -2104,7 +2104,7 @@ internal::futurize_base::make_exception_future(Arg&& arg) noexcept { template auto futurize_invoke(Func&& func, Args&&... args) noexcept { - using futurator = futurize>; + using futurator = futurize>; return futurator::invoke(std::forward(func), std::forward(args)...); } @@ -2116,7 +2116,7 @@ auto futurize_apply(Func&& func, Args&&... args) noexcept { template auto futurize_apply(Func&& func, std::tuple&& args) noexcept { - using futurator = futurize>; + using futurator = futurize>; return futurator::apply(std::forward(func), std::move(args)); }