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 <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2020-02-11 17:57:42 +08:00
parent ccb8d61ff3
commit 470d2e28fc

View File

@ -614,6 +614,8 @@ private:
// let seastar::do_with to up-cast us to seastar::future.
template<typename T, typename F>
friend inline auto ::seastar::do_with(T&&, F&&);
template<typename T1, typename T2, typename T3_or_F, typename... More>
friend inline auto ::seastar::do_with(T1&& rv1, T2&& rv2, T3_or_F&& rv3, More&&... more);
};
public: