diff --git a/include/cpr/session.h b/include/cpr/session.h index 9a69d35aa..89c0e1d98 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; @@ -292,7 +294,6 @@ class Session : public std::enable_shared_from_this { **/ void prepareCommonDownload(); void prepareHeader(); - std::shared_ptr GetSharedPtrFromThis(); CURLcode DoEasyPerform(); void prepareBodyPayloadOrMultipart() const; /**