From ebeafc989e49f35d6835d0e1f24e0e96c9755cc5 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 3 Apr 2020 11:10:40 +0200 Subject: [PATCH] Fixes #293: added workaround for MSVC max bug --- client_http.hpp | 2 +- server_http.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client_http.hpp b/client_http.hpp index 723f882..1a87b03 100644 --- a/client_http.hpp +++ b/client_http.hpp @@ -142,7 +142,7 @@ namespace SimpleWeb { long timeout_connect = 0; /// Maximum size of response stream buffer. Defaults to architecture maximum. /// Reaching this limit will result in a message_size error code. - std::size_t max_response_streambuf_size = std::numeric_limits::max(); + std::size_t max_response_streambuf_size = (std::numeric_limits::max)(); /// Set proxy server (server:port) std::string proxy_server; }; diff --git a/server_http.hpp b/server_http.hpp index d2671c1..b31501b 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -340,7 +340,7 @@ namespace SimpleWeb { long timeout_content = 300; /// Maximum size of request stream buffer. Defaults to architecture maximum. /// Reaching this limit will result in a message_size error code. - std::size_t max_request_streambuf_size = std::numeric_limits::max(); + std::size_t max_request_streambuf_size = (std::numeric_limits::max)(); /// IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation. /// If empty, the address will be any address. std::string address;