From: Kefu Chai Date: Wed, 6 May 2020 10:39:44 +0000 (+0800) Subject: crimson/common: friend with do_with_impl() X-Git-Tag: v17.0.0~2435^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f4b33c7b85bb65cc33d383b85aac768debaee419;p=ceph.git crimson/common: friend with do_with_impl() seastar changed the implementatino of do_with(), so it's do_with_impl() who tries to up-cast erroratorized future to seastar::future<>. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 4d7a7e1674077..e39e361f517cb 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -623,11 +623,11 @@ private: template friend class ::seastar::future; - // let seastar::do_with to up-cast us to seastar::future. + // let seastar::do_with_impl to up-cast us to seastar::future. template - friend inline auto ::seastar::do_with(T&&, F&&) noexcept; + friend inline auto ::seastar::internal::do_with_impl(T&& rvalue, F&& f); template - friend inline auto ::seastar::do_with(T1&& rv1, T2&& rv2, T3_or_F&& rv3, More&&... more) noexcept; + friend inline auto ::seastar::internal::do_with_impl(T1&& rv1, T2&& rv2, T3_or_F&& rv3, More&&... more); }; class Enabler {};