diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-08 05:05:52 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-08 05:05:52 +0300 |
commit | 134e9a07773fd52fc575c81b1a5ef3cd24eb35cd (patch) | |
tree | d0976ad9e3f629ab288a8dd99412ed497e4105e0 /server/main/server.hpp | |
parent | fix CMakeLists.txt for Visual Studio 2019 (diff) | |
download | math-server-134e9a07773fd52fc575c81b1a5ef3cd24eb35cd.tar.gz math-server-134e9a07773fd52fc575c81b1a5ef3cd24eb35cd.zip |
server: proper integer types
So that VS 2019 doesn't complain.
Diffstat (limited to '')
-rw-r--r-- | server/main/server.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/main/server.hpp b/server/main/server.hpp index 5524f88..50d8c7a 100644 --- a/server/main/server.hpp +++ b/server/main/server.hpp @@ -6,12 +6,14 @@ #include <boost/asio.hpp> #include <boost/system/error_code.hpp> +#include <cstddef> + namespace math::server { class Server { public: Server(const Settings& settings); - Server(unsigned port, unsigned threads); + Server(unsigned short port, std::size_t threads); void run(); @@ -22,7 +24,7 @@ private: void accept(); void handle_accept(SessionPtr session, const boost::system::error_code& ec); - const unsigned m_numof_threads; + const std::size_t m_numof_threads; boost::asio::io_context m_io_context; boost::asio::signal_set m_signals; |