From 89f179c18c561fdbb9e223e0c1d8a2e21c70e681 Mon Sep 17 00:00:00 2001 From: Fabian Sauter Date: Sun, 24 Nov 2024 06:44:41 +0100 Subject: [PATCH] Public cpr::Session::GetSharedPtrFromThis --- include/cpr/session.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/cpr/session.h b/include/cpr/session.h index df1324707..6d7b7a497 100644 --- a/include/cpr/session.h +++ b/include/cpr/session.h @@ -226,6 +226,8 @@ class Session : public std::enable_shared_from_this { void AddInterceptor(const std::shared_ptr& pinterceptor); + std::shared_ptr GetSharedPtrFromThis(); + private: // Interceptors should be able to call the private proceed() function friend Interceptor; @@ -288,7 +290,6 @@ class Session : public std::enable_shared_from_this { **/ void prepareCommonDownload(); void prepareHeader(); - std::shared_ptr GetSharedPtrFromThis(); CURLcode DoEasyPerform(); void prepareBodyPayloadOrMultipart() const; /**