summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Api.cpp5
-rw-r--r--src/Bot.cpp3
-rw-r--r--src/EventHandler.cpp1
-rw-r--r--src/TgException.cpp2
-rw-r--r--src/TgTypeParser.cpp3
-rw-r--r--src/net/BoostHttpOnlySslClient.cpp1
-rw-r--r--src/net/CurlHttpClient.cpp1
-rw-r--r--src/net/HttpParser.cpp4
-rw-r--r--src/net/TgLongPoll.cpp2
-rw-r--r--src/net/Url.cpp1
-rw-r--r--src/tools/FileTools.cpp1
-rw-r--r--src/tools/StringTools.cpp2
-rw-r--r--src/types/InlineQueryResult.cpp2
-rw-r--r--src/types/InputFile.cpp3
14 files changed, 28 insertions, 3 deletions
diff --git a/src/Api.cpp b/src/Api.cpp
index 0f443b3..6e01807 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -1,10 +1,13 @@
#include "tgbot/Api.h"
-#include <tgbot/tools/StringTools.h>
+#include "tgbot/tools/StringTools.h"
+
#include "tgbot/TgException.h"
#include "tgbot/TgTypeParser.h"
#include <cstdint>
+#include <string>
+#include <vector>
#include <utility>
using namespace std;
diff --git a/src/Bot.cpp b/src/Bot.cpp
index b1e1ea5..e0acbdb 100644
--- a/src/Bot.cpp
+++ b/src/Bot.cpp
@@ -2,6 +2,9 @@
#include "tgbot/EventBroadcaster.h"
+#include <memory>
+#include <string>
+
namespace TgBot {
Bot::Bot(std::string token, const HttpClient& httpClient)
diff --git a/src/EventHandler.cpp b/src/EventHandler.cpp
index 43f2eb1..cad3e4f 100644
--- a/src/EventHandler.cpp
+++ b/src/EventHandler.cpp
@@ -2,6 +2,7 @@
#include <algorithm>
#include <cstddef>
+#include <string>
using namespace std;
diff --git a/src/TgException.cpp b/src/TgException.cpp
index 03a942c..e61e09c 100644
--- a/src/TgException.cpp
+++ b/src/TgException.cpp
@@ -1,5 +1,7 @@
#include "tgbot/TgException.h"
+#include <string>
+
namespace TgBot {
TgBot::TgException::TgException(const std::string& description) : runtime_error(description) {
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp
index 4d91d28..06a2b2a 100644
--- a/src/TgTypeParser.cpp
+++ b/src/TgTypeParser.cpp
@@ -1,5 +1,8 @@
#include "tgbot/TgTypeParser.h"
+#include <memory>
+#include <string>
+
using namespace std;
using namespace boost::property_tree;
diff --git a/src/net/BoostHttpOnlySslClient.cpp b/src/net/BoostHttpOnlySslClient.cpp
index bc541ed..301d0c8 100644
--- a/src/net/BoostHttpOnlySslClient.cpp
+++ b/src/net/BoostHttpOnlySslClient.cpp
@@ -3,6 +3,7 @@
#include <boost/asio/ssl.hpp>
#include <cstddef>
+#include <vector>
using namespace std;
using namespace boost::asio;
diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp
index d56f87f..6dc43f8 100644
--- a/src/net/CurlHttpClient.cpp
+++ b/src/net/CurlHttpClient.cpp
@@ -5,6 +5,7 @@
#include <boost/asio/ssl.hpp>
#include <cstddef>
+#include <string>
namespace TgBot {
diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp
index a1cafeb..cc9b84b 100644
--- a/src/net/HttpParser.cpp
+++ b/src/net/HttpParser.cpp
@@ -5,7 +5,9 @@
#include <boost/algorithm/string.hpp>
#include <cstddef>
-#include <cstdint>
+#include <string>
+#include <vector>
+#include <unordered_map>
using namespace std;
using namespace boost;
diff --git a/src/net/TgLongPoll.cpp b/src/net/TgLongPoll.cpp
index 98575de..a7b4fcb 100644
--- a/src/net/TgLongPoll.cpp
+++ b/src/net/TgLongPoll.cpp
@@ -5,6 +5,8 @@
#include "tgbot/EventHandler.h"
#include <cstdint>
+#include <memory>
+#include <vector>
#include <utility>
namespace TgBot {
diff --git a/src/net/Url.cpp b/src/net/Url.cpp
index 95e31c7..4b46f41 100644
--- a/src/net/Url.cpp
+++ b/src/net/Url.cpp
@@ -1,6 +1,7 @@
#include "tgbot/net/Url.h"
#include <cstddef>
+#include <string>
using namespace std;
diff --git a/src/tools/FileTools.cpp b/src/tools/FileTools.cpp
index d2c303c..bb5b7b5 100644
--- a/src/tools/FileTools.cpp
+++ b/src/tools/FileTools.cpp
@@ -2,6 +2,7 @@
#include <fstream>
#include <sstream>
+#include <string>
using namespace std;
diff --git a/src/tools/StringTools.cpp b/src/tools/StringTools.cpp
index f49a78e..8b8f4da 100644
--- a/src/tools/StringTools.cpp
+++ b/src/tools/StringTools.cpp
@@ -1,9 +1,9 @@
#include "tgbot/tools/StringTools.h"
-#include <cstdlib>
#include <iomanip>
#include <cstdio>
#include <random>
+#include <string>
using namespace std;
diff --git a/src/types/InlineQueryResult.cpp b/src/types/InlineQueryResult.cpp
index 3d4ea6e..0993ec2 100644
--- a/src/types/InlineQueryResult.cpp
+++ b/src/types/InlineQueryResult.cpp
@@ -19,6 +19,8 @@
#include "tgbot/types/InlineQueryResultPhoto.h"
#include "tgbot/types/InlineQueryResultVideo.h"
+#include <string>
+
using namespace TgBot;
const std::string InlineQueryResultCachedAudio::TYPE = "audio";
diff --git a/src/types/InputFile.cpp b/src/types/InputFile.cpp
index 0ca1991..c74c73e 100644
--- a/src/types/InputFile.cpp
+++ b/src/types/InputFile.cpp
@@ -2,6 +2,9 @@
#include "tgbot/tools/StringTools.h"
#include "tgbot/tools/FileTools.h"
+#include <memory>
+#include <string>
+
using namespace std;
namespace TgBot {