summaryrefslogtreecommitdiff
path: root/src/net/BoostHttpOnlySslClient.cpp
diff options
context:
space:
mode:
authorAlexander Zaitsev <zamazan4ik@tut.by>2020-03-13 03:56:35 +0300
committerAlexander Zaitsev <zamazan4ik@tut.by>2020-03-13 03:56:35 +0300
commit26fac5bf7e87dd5704a967ee4c744228b93d20b7 (patch)
tree74e5daa9a58f3a97b417925a212ac2cd31487a5e /src/net/BoostHttpOnlySslClient.cpp
parent806e7e5a3edf4fdf2b9c48469a7bc23307b200b0 (diff)
fix: use std::size_t instead of size_t
- use C++ size_t from std namespace instead of a version from global namespace Tested: - Local build - Unit-tests
Diffstat (limited to 'src/net/BoostHttpOnlySslClient.cpp')
-rw-r--r--src/net/BoostHttpOnlySslClient.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/BoostHttpOnlySslClient.cpp b/src/net/BoostHttpOnlySslClient.cpp
index d0fde8e..836b06a 100644
--- a/src/net/BoostHttpOnlySslClient.cpp
+++ b/src/net/BoostHttpOnlySslClient.cpp
@@ -1,5 +1,7 @@
#include "tgbot/net/BoostHttpOnlySslClient.h"
+#include <cstddef>
+
#include <boost/asio/ssl.hpp>
using namespace std;
@@ -59,7 +61,7 @@ string BoostHttpOnlySslClient::makeRequest(const Url& url, const vector<HttpReqA
boost::system::error_code error;
while (!error) {
- size_t bytes = read(socket, buffer(buff), error);
+ std::size_t bytes = read(socket, buffer(buff), error);
response += string(buff, bytes);
}