From 6c5373974fdf3ec1924357cd40fbab330804361c Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sun, 22 Mar 2020 21:26:34 +0300 Subject: Move method to source file. Put include with boost asio at the first place, because otherwise it is compiler error somewhere in files related to include order. --- include/tgbot/Bot.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'include/tgbot/Bot.h') diff --git a/include/tgbot/Bot.h b/include/tgbot/Bot.h index 58d667c..023a71b 100644 --- a/include/tgbot/Bot.h +++ b/include/tgbot/Bot.h @@ -3,8 +3,6 @@ #include "tgbot/Api.h" #include "tgbot/EventHandler.h" -#include "tgbot/net/HttpClient.h" -#include "tgbot/net/BoostHttpOnlySslClient.h" #include #include @@ -13,6 +11,7 @@ namespace TgBot { class EventBroadcaster; +class HttpClient; /** * @brief This object holds other objects specific for this bot instance. @@ -53,10 +52,7 @@ public: } private: - static HttpClient& _getDefaultHttpClient() { - static BoostHttpOnlySslClient instance; - return instance; - } + static HttpClient &_getDefaultHttpClient(); const std::string _token; const Api _api; -- cgit v1.2.3