Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
fc3ce10a
"examples/git@developer.sourcefind.cn:change/sglang.git" did not exist on "b149b39353ab5295cca80aa13ec1903e9c7e60d9"
Commit
fc3ce10a
authored
Oct 13, 2012
by
Davis King
Browse files
Minor change to avoid compiler error in visual studio 2012
parent
491cbe1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/bsp/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