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
879202b7
Commit
879202b7
authored
Apr 19, 2019
by
Davis King
Browse files
Fixed build error in newer clang on OpenBSD.
parent
d9af22e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
dlib/test/stack.cpp
dlib/test/stack.cpp
+2
-3
No files found.
dlib/test/stack.cpp
View file @
879202b7
...
@@ -15,7 +15,6 @@ namespace
...
@@ -15,7 +15,6 @@ namespace
using
namespace
test
;
using
namespace
test
;
using
namespace
dlib
;
using
namespace
dlib
;
using
namespace
std
;
logger
dlog
(
"test.stack"
);
logger
dlog
(
"test.stack"
);
...
@@ -220,10 +219,10 @@ namespace
...
@@ -220,10 +219,10 @@ namespace
// serialize the state of a2, then clear a2, then
// serialize the state of a2, then clear a2, then
// load the state back into a2.
// load the state back into a2.
ostringstream
sout
;
std
::
ostringstream
sout
;
serialize
(
a2
,
sout
);
serialize
(
a2
,
sout
);
DLIB_TEST
(
a2
.
at_start
()
==
true
);
DLIB_TEST
(
a2
.
at_start
()
==
true
);
istringstream
sin
(
sout
.
str
());
std
::
istringstream
sin
(
sout
.
str
());
a2
.
clear
();
a2
.
clear
();
deserialize
(
a2
,
sin
);
deserialize
(
a2
,
sin
);
...
...
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