From 470d2e28fc2c5f045c50de0d35c76e25f55bdd77 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 11 Feb 2020 17:57:42 +0800 Subject: [PATCH] crimson/common: more friendly to seastar::do_with() so we don't need to do the box-unbox dance when callng seastar::do_with() with multiple with'ed variables and a continuation which returns `errator<...>::future`. Signed-off-by: Kefu Chai --- src/crimson/common/errorator.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index f26b65847c4..91d26fa10dd 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -614,6 +614,8 @@ private: // let seastar::do_with to up-cast us to seastar::future. template friend inline auto ::seastar::do_with(T&&, F&&); + template + friend inline auto ::seastar::do_with(T1&& rv1, T2&& rv2, T3_or_F&& rv3, More&&... more); }; public: -- 2.39.5