Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit 89eba06

Browse files
committed
Minor fix for older compilers.
1 parent 8447a68 commit 89eba06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server_ws.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ namespace SimpleWeb {
156156
class Config {
157157
friend class SocketServerBase<socket_type>;
158158
private:
159-
Config(unsigned short port, size_t num_threads): port(port), num_threads(num_threads) {}
159+
Config(unsigned short port, size_t num_threads): port(port), num_threads(num_threads), reuse_address(true) {}
160160
unsigned short port;
161161
size_t num_threads;
162162
public:
163163
///IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation.
164164
///If empty, the address will be any address.
165165
std::string address;
166166
///Set to false to avoid binding the socket to an address that is already in use.
167-
bool reuse_address=true;
167+
bool reuse_address;
168168
};
169169
///Set before calling start().
170170
Config config;

0 commit comments

Comments
 (0)