Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
fc3ce10a
Commit
fc3ce10a
authored
Oct 13, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor change to avoid compiler error in visual studio 2012
parent
491cbe1a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bsp.cpp
dlib/bsp/bsp.cpp
+2
-2
No files found.
dlib/bsp/bsp.cpp
View file @
fc3ce10a
...
@@ -67,7 +67,7 @@ namespace dlib
...
@@ -67,7 +67,7 @@ namespace dlib
unsigned
long
id
=
hosts
[
i
].
node_id
;
unsigned
long
id
=
hosts
[
i
].
node_id
;
cons
.
add
(
id
,
con
);
cons
.
add
(
id
,
con
);
}
}
catch
(
std
::
exception
&
e
)
catch
(
std
::
exception
&
)
{
{
std
::
ostringstream
sout
;
std
::
ostringstream
sout
;
sout
<<
"Could not connect to "
<<
hosts
[
i
].
ip
<<
":"
<<
hosts
[
i
].
port
;
sout
<<
"Could not connect to "
<<
hosts
[
i
].
ip
<<
":"
<<
hosts
[
i
].
port
;
...
@@ -168,7 +168,7 @@ namespace dlib
...
@@ -168,7 +168,7 @@ namespace dlib
// make a thread that will connect to all the targets
// make a thread that will connect to all the targets
map_id_to_con
cons2
;
map_id_to_con
cons2
;
std
::
string
error_string
;
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
)
if
(
error_string
.
size
()
!=
0
)
throw
socket_error
(
error_string
);
throw
socket_error
(
error_string
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment