]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: make do_with() noexcept
authorKefu Chai <kchai@redhat.com>
Wed, 6 May 2020 09:42:17 +0000 (17:42 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 6 May 2020 15:07:30 +0000 (23:07 +0800)
to be consistent with seasetar change of
85aa178d9539b2c9301d4fb0815596a741fb82c4, which make
`seasetar::do_with()` noexcept

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/errorator.h

index e5a814729dd10ca7cc9d625ec469088c093636ca..4d7a7e167407772dae76f8df4a8659ed19a2b217 100644 (file)
@@ -625,9 +625,9 @@ 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&&);
+    friend inline auto ::seastar::do_with(T&&, F&&) noexcept;
     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);
+    friend inline auto ::seastar::do_with(T1&& rv1, T2&& rv2, T3_or_F&& rv3, More&&... more) noexcept;
   };
 
   class Enabler {};