mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Minor change to avoid compiler error in visual studio 2012
This commit is contained in:
parent
491cbe1a35
commit
fc3ce10a52
@ -67,7 +67,7 @@ namespace dlib
|
||||
unsigned long id = hosts[i].node_id;
|
||||
cons.add(id, con);
|
||||
}
|
||||
catch (std::exception& e)
|
||||
catch (std::exception&)
|
||||
{
|
||||
std::ostringstream sout;
|
||||
sout << "Could not connect to " << hosts[i].ip << ":" << hosts[i].port;
|
||||
@ -168,7 +168,7 @@ namespace dlib
|
||||
// make a thread that will connect to all the targets
|
||||
map_id_to_con cons2;
|
||||
std::string error_string;
|
||||
thread_function thread(connect_all_hostinfo, ref(cons2), ref(targets), node_id, ref(error_string));
|
||||
thread_function thread(connect_all_hostinfo, dlib::ref(cons2), dlib::ref(targets), node_id, dlib::ref(error_string));
|
||||
if (error_string.size() != 0)
|
||||
throw socket_error(error_string);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user