Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / beast / core / async_base.hpp
index ee6a7d7..c576030 100644 (file)
@@ -117,7 +117,7 @@ namespace beast {
                 // `net::post` will be used to call the completion handler, otherwise
                 // the completion handler will be invoked directly.
 
-                this->invoke(is_continuation, ec, total_bytes_transferred_);
+                this->complete(is_continuation, ec, total_bytes_transferred_);
             }
         };
 
@@ -249,6 +249,10 @@ public:
     /// Move Constructor
     async_base(async_base&& other) = default;
 
+    virtual ~async_base() = default;
+    async_base(async_base const&) = delete;
+    async_base& operator=(async_base const&) = delete;
+
     /** The type of allocator associated with this object.
 
         If a class derived from @ref async_base is a completion