fixed vs2012 compile
This commit is contained in:
parent
aecb04c7ac
commit
e37980fefc
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ namespace SimpleWeb {
|
||||||
class Config {
|
class Config {
|
||||||
friend class ServerBase<socket_type>;
|
friend class ServerBase<socket_type>;
|
||||||
private:
|
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;
|
unsigned short port;
|
||||||
size_t num_threads;
|
size_t num_threads;
|
||||||
public:
|
public:
|
||||||
|
|
@ -97,7 +97,7 @@ namespace SimpleWeb {
|
||||||
///If empty, the address will be any address.
|
///If empty, the address will be any address.
|
||||||
std::string address;
|
std::string address;
|
||||||
///Set to false to avoid binding the socket to an address that is already in use.
|
///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().
|
///Set before calling start().
|
||||||
Config config;
|
Config config;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue