diff --git a/include/asynchronousContinuation.h b/include/asynchronousContinuation.h index 60ca47d..a604a98 100644 --- a/include/asynchronousContinuation.h +++ b/include/asynchronousContinuation.h @@ -68,7 +68,7 @@ public: // Implement the virtual method from AsynchronousContinuationChainLink virtual std::shared_ptr - getCallersContinuationShPtr() override + getCallersContinuationShPtr() const override { return originalCallback.callerContinuation; } public: diff --git a/include/asynchronousContinuationChainLink.h b/include/asynchronousContinuationChainLink.h index 84a2663..60e8893 100644 --- a/include/asynchronousContinuationChainLink.h +++ b/include/asynchronousContinuationChainLink.h @@ -24,7 +24,7 @@ public: virtual ~AsynchronousContinuationChainLink() = default; virtual std::shared_ptr - getCallersContinuationShPtr() = 0; + getCallersContinuationShPtr() const = 0; }; } // namespace smo