A minor change to avoid a compiler error from clang 3.4 on Mac OS X 10.9.

Thanks to Martin Fergie for reporting this problem.
This commit is contained in:
Davis King 2014-03-18 19:18:04 -04:00
parent 353e885908
commit 4ee56cb684
2 changed files with 12 additions and 12 deletions

View File

@ -90,8 +90,8 @@ namespace dlib
connection*& new_connection,
unsigned short foreign_port,
const std::string& foreign_ip,
unsigned short local_port = 0,
const std::string& local_ip = ""
unsigned short local_port,
const std::string& local_ip
);
public:
@ -255,7 +255,7 @@ namespace dlib
friend int create_listener (
listener*& new_listener,
unsigned short port,
const std::string& ip = ""
const std::string& ip
);
public:
@ -312,15 +312,15 @@ namespace dlib
int create_listener (
listener*& new_listener,
unsigned short port,
const std::string& ip
const std::string& ip = ""
);
int create_connection (
connection*& new_connection,
unsigned short foreign_port,
const std::string& foreign_ip,
unsigned short local_port,
const std::string& local_ip
unsigned short local_port = 0,
const std::string& local_ip = ""
);
int create_listener (

View File

@ -113,8 +113,8 @@ namespace dlib
connection*& new_connection,
unsigned short foreign_port,
const std::string& foreign_ip,
unsigned short local_port = 0,
const std::string& local_ip = ""
unsigned short local_port,
const std::string& local_ip
);
public:
@ -299,7 +299,7 @@ namespace dlib
friend int create_listener (
listener*& new_listener,
unsigned short port,
const std::string& ip = ""
const std::string& ip
);
public:
@ -356,15 +356,15 @@ namespace dlib
int create_listener (
listener*& new_listener,
unsigned short port,
const std::string& ip
const std::string& ip = ""
);
int create_connection (
connection*& new_connection,
unsigned short foreign_port,
const std::string& foreign_ip,
unsigned short local_port,
const std::string& local_ip
unsigned short local_port = 0,
const std::string& local_ip = ""
);
int create_listener (