]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common/errorator: forward declare futurize as a struct 42187/head
authorKefu Chai <kchai@redhat.com>
Mon, 5 Jul 2021 15:27:27 +0000 (23:27 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 5 Jul 2021 15:27:28 +0000 (23:27 +0800)
as it is defined as struct, otherwise clang complains on this
inconsistency.

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

index 8a821d17b2c1583d061edde896a6a0bb1e4716a9..4ee7025e83519430992aefd69a4378ada3abbf1c 100644 (file)
@@ -372,7 +372,7 @@ private:
     // any `seastar::futurize` specialization must be able to access the base.
     // see : `satisfy_with_result_of()` far below.
     template <typename>
-    friend class seastar::futurize;
+    friend struct seastar::futurize;
 
     template <typename T1, typename T2, typename... More>
     friend auto seastar::internal::do_with_impl(T1&& rv1, T2&& rv2, More&&... more);