diff --git a/Project1 b/Project1 new file mode 100755 index 0000000..c286143 Binary files /dev/null and b/Project1 differ diff --git a/libraries/user_input.h b/libraries/user_input.h index 4632fdb..8e34be2 100755 --- a/libraries/user_input.h +++ b/libraries/user_input.h @@ -10,12 +10,12 @@ constexpr auto all = std::numeric_limits::max(); namespace math { - template [[maybe_unused]] - constexpr auto is_between(typeof(lb) x) -> bool { return (ub > x) && (x > lb); } + template [[maybe_unused]] + constexpr auto is_between(decltype(lb) x) -> bool { return (ub > x) && (x > lb); } template [[maybe_unused]] - constexpr auto is_larger(typeof(lb) x) -> bool { return (x > lb); } + constexpr auto is_larger(decltype(lb) x) -> bool { return (x > lb); } template [[maybe_unused]] - constexpr auto is_smaller(typeof(ub) x) -> bool { return (ub > x); } + constexpr auto is_smaller(decltype(ub) x) -> bool { return (ub > x); } template [[maybe_unused]] auto numerical_suffix(T value) -> std::string { diff --git a/project/client.h b/project/client.h index b75a3e1..96f26b5 100644 --- a/project/client.h +++ b/project/client.h @@ -23,7 +23,6 @@ public: explicit client() : networked(net::socket(AF_INET, SOCK_STREAM, 0)){} auto connect(const std::string& ip, const port port) -> std::thread { - const auto address = net::getaddrinfo(ip, std::to_string(port)); auto remote_address = net::getaddrinfo(ip, std::to_string(port)); if (!remote_address || net::connect(socket, remote_address) < 0) return std::thread();