]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/async: add co_waiter::op_cancellation ctor for clang
authorCasey Bodley <cbodley@redhat.com>
Sun, 5 Feb 2023 22:28:03 +0000 (17:28 -0500)
committerAdam Emerson <aemerson@redhat.com>
Thu, 14 Sep 2023 21:48:00 +0000 (17:48 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/async/co_waiter.h

index cd29d78875bc6e91edc760e257591bce2e2ef034..098ff1f26b67afd41502f6c42efc0c5276f4f823 100644 (file)
@@ -34,6 +34,7 @@ class co_waiter {
 
   struct op_cancellation {
     co_waiter* self;
+    op_cancellation(co_waiter* self) : self(self) {}
     void operator()(boost::asio::cancellation_type_t type) {
       if (type != boost::asio::cancellation_type::none) {
         self->cancel();
@@ -103,6 +104,7 @@ class co_waiter<void, Executor> {
 
   struct op_cancellation {
     co_waiter* self;
+    op_cancellation(co_waiter* self) : self(self) {}
     void operator()(boost::asio::cancellation_type_t type) {
       if (type != boost::asio::cancellation_type::none) {
         self->cancel();