From b667e8629bbfd261ec435ec9e0a644b090a2a56d Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Wed, 11 Dec 2019 11:53:37 +0100 Subject: [PATCH] crimson: make seastar::do_with() a friend of errorated futures. Signed-off-by: Radoslaw Zarzynski --- src/crimson/common/errorator.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index dc0ec2e61c8..137f55d0a16 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -604,6 +604,10 @@ private: template friend class ::seastar::future; + + // let seastar::do_with to up-cast us to seastar::future. + template + friend inline auto ::seastar::do_with(T&&, F&&); }; public: -- 2.39.5