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. --- src/Bot.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Bot.cpp') diff --git a/src/Bot.cpp b/src/Bot.cpp index e0acbdb..11bea2c 100644 --- a/src/Bot.cpp +++ b/src/Bot.cpp @@ -1,3 +1,4 @@ +#include "tgbot/net/BoostHttpOnlySslClient.h" #include "tgbot/Bot.h" #include "tgbot/EventBroadcaster.h" @@ -14,4 +15,9 @@ Bot::Bot(std::string token, const HttpClient& httpClient) , _eventHandler(getEvents()) { } +HttpClient& Bot::_getDefaultHttpClient() { + static BoostHttpOnlySslClient instance; + return instance; +} + } -- cgit v1.2.3