From e37980fefccfab6152c32b69a08af7b56c34841b Mon Sep 17 00:00:00 2001 From: DraconPern Date: Fri, 27 Nov 2015 14:43:38 -0600 Subject: [PATCH] fixed vs2012 compile --- server_http.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_http.hpp b/server_http.hpp index 76010b8..c7ae79f 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -89,7 +89,7 @@ namespace SimpleWeb { class Config { friend class ServerBase; private: - Config(unsigned short port, size_t num_threads): port(port), num_threads(num_threads) {} + Config(unsigned short port, size_t num_threads): port(port), num_threads(num_threads), reuse_address(true) {} unsigned short port; size_t num_threads; public: @@ -97,7 +97,7 @@ namespace SimpleWeb { ///If empty, the address will be any address. std::string address; ///Set to false to avoid binding the socket to an address that is already in use. - bool reuse_address=true; + bool reuse_address; }; ///Set before calling start(). Config config;