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
f9b7ad9a
Commit
f9b7ad9a
authored
Mar 04, 2019
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warnings in gcc 8
parent
5d03b99a
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
33 additions
and
33 deletions
+33
-33
array_kernel.h
dlib/array/array_kernel.h
+2
-2
array2d_kernel.h
dlib/array2d/array2d_kernel.h
+2
-2
serialize_pixel_overloads.h
dlib/array2d/serialize_pixel_overloads.h
+10
-10
binary_search_tree_kernel_1.h
dlib/binary_search_tree/binary_search_tree_kernel_1.h
+1
-1
binary_search_tree_kernel_2.h
dlib/binary_search_tree/binary_search_tree_kernel_2.h
+1
-1
fonts.cpp
dlib/gui_widgets/fonts.cpp
+2
-2
hash_map_kernel_1.h
dlib/hash_map/hash_map_kernel_1.h
+1
-1
hash_set_kernel_1.h
dlib/hash_set/hash_set_kernel_1.h
+1
-1
hash_table_kernel_1.h
dlib/hash_table/hash_table_kernel_1.h
+1
-1
hash_table_kernel_2.h
dlib/hash_table/hash_table_kernel_2.h
+1
-1
map_kernel_1.h
dlib/map/map_kernel_1.h
+1
-1
optimization_bobyqa.h
dlib/optimization/optimization_bobyqa.h
+1
-1
queue_kernel_1.h
dlib/queue/queue_kernel_1.h
+1
-1
queue_kernel_2.h
dlib/queue/queue_kernel_2.h
+1
-1
sequence_kernel_1.h
dlib/sequence/sequence_kernel_1.h
+1
-1
sequence_kernel_2.h
dlib/sequence/sequence_kernel_2.h
+1
-1
set_kernel_1.h
dlib/set/set_kernel_1.h
+1
-1
sliding_buffer_kernel_1.h
dlib/sliding_buffer/sliding_buffer_kernel_1.h
+1
-1
stack_kernel_1.h
dlib/stack/stack_kernel_1.h
+1
-1
static_set_kernel_1.h
dlib/static_set/static_set_kernel_1.h
+1
-1
compress_stream.cpp
dlib/test/compress_stream.cpp
+1
-1
No files found.
dlib/array/array_kernel.h
View file @
f9b7ad9a
...
@@ -250,7 +250,7 @@ namespace dlib
...
@@ -250,7 +250,7 @@ namespace dlib
for
(
size_t
i
=
0
;
i
<
item
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
item
.
size
();
++
i
)
serialize
(
item
[
i
],
out
);
serialize
(
item
[
i
],
out
);
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array"
);
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array"
);
}
}
...
@@ -275,7 +275,7 @@ namespace dlib
...
@@ -275,7 +275,7 @@ namespace dlib
for
(
size_t
i
=
0
;
i
<
size
;
++
i
)
for
(
size_t
i
=
0
;
i
<
size
;
++
i
)
deserialize
(
item
[
i
],
in
);
deserialize
(
item
[
i
],
in
);
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array"
);
...
...
dlib/array2d/array2d_kernel.h
View file @
f9b7ad9a
...
@@ -394,7 +394,7 @@ namespace dlib
...
@@ -394,7 +394,7 @@ namespace dlib
serialize
(
item
.
element
(),
out
);
serialize
(
item
.
element
(),
out
);
item
.
reset
();
item
.
reset
();
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
}
}
...
@@ -432,7 +432,7 @@ namespace dlib
...
@@ -432,7 +432,7 @@ namespace dlib
deserialize
(
item
.
element
(),
in
);
deserialize
(
item
.
element
(),
in
);
item
.
reset
();
item
.
reset
();
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
...
...
dlib/array2d/serialize_pixel_overloads.h
View file @
f9b7ad9a
...
@@ -43,7 +43,7 @@ namespace dlib
...
@@ -43,7 +43,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
rgb_pixel
)
*
item
.
size
());
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
rgb_pixel
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
}
}
...
@@ -81,7 +81,7 @@ namespace dlib
...
@@ -81,7 +81,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
rgb_pixel
)
*
item
.
size
());
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
rgb_pixel
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
...
@@ -112,7 +112,7 @@ namespace dlib
...
@@ -112,7 +112,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
bgr_pixel
)
*
item
.
size
());
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
bgr_pixel
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
}
}
...
@@ -151,7 +151,7 @@ namespace dlib
...
@@ -151,7 +151,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
bgr_pixel
)
*
item
.
size
());
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
bgr_pixel
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
...
@@ -182,7 +182,7 @@ namespace dlib
...
@@ -182,7 +182,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
hsi_pixel
)
*
item
.
size
());
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
hsi_pixel
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
}
}
...
@@ -221,7 +221,7 @@ namespace dlib
...
@@ -221,7 +221,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
hsi_pixel
)
*
item
.
size
());
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
hsi_pixel
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
...
@@ -252,7 +252,7 @@ namespace dlib
...
@@ -252,7 +252,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
rgb_alpha_pixel
)
*
item
.
size
());
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
rgb_alpha_pixel
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
}
}
...
@@ -291,7 +291,7 @@ namespace dlib
...
@@ -291,7 +291,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
rgb_alpha_pixel
)
*
item
.
size
());
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
rgb_alpha_pixel
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
...
@@ -320,7 +320,7 @@ namespace dlib
...
@@ -320,7 +320,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
unsigned
char
)
*
item
.
size
());
out
.
write
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
unsigned
char
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type array2d"
);
}
}
...
@@ -356,7 +356,7 @@ namespace dlib
...
@@ -356,7 +356,7 @@ namespace dlib
if
(
item
.
size
()
!=
0
)
if
(
item
.
size
()
!=
0
)
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
unsigned
char
)
*
item
.
size
());
in
.
read
((
char
*
)
&
item
[
0
][
0
],
sizeof
(
unsigned
char
)
*
item
.
size
());
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type array2d"
);
...
...
dlib/binary_search_tree/binary_search_tree_kernel_1.h
View file @
f9b7ad9a
...
@@ -534,7 +534,7 @@ namespace dlib
...
@@ -534,7 +534,7 @@ namespace dlib
item
.
add
(
d
,
r
);
item
.
add
(
d
,
r
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type binary_search_tree_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type binary_search_tree_kernel_1"
);
...
...
dlib/binary_search_tree/binary_search_tree_kernel_2.h
View file @
f9b7ad9a
...
@@ -482,7 +482,7 @@ namespace dlib
...
@@ -482,7 +482,7 @@ namespace dlib
item
.
add
(
d
,
r
);
item
.
add
(
d
,
r
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type binary_search_tree_kernel_2"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type binary_search_tree_kernel_2"
);
...
...
dlib/gui_widgets/fonts.cpp
View file @
f9b7ad9a
...
@@ -148,7 +148,7 @@ namespace dlib
...
@@ -148,7 +148,7 @@ namespace dlib
serialize
(
item
.
points
[
i
].
y
,
out
);
serialize
(
item
.
points
[
i
].
y
,
out
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type letter"
);
throw
serialization_error
(
e
.
info
+
"
\n
while serializing object of type letter"
);
}
}
...
@@ -178,7 +178,7 @@ namespace dlib
...
@@ -178,7 +178,7 @@ namespace dlib
deserialize
(
item
.
points
[
i
].
y
,
in
);
deserialize
(
item
.
points
[
i
].
y
,
in
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
w
=
0
;
item
.
w
=
0
;
item
.
count
=
0
;
item
.
count
=
0
;
...
...
dlib/hash_map/hash_map_kernel_1.h
View file @
f9b7ad9a
...
@@ -169,7 +169,7 @@ namespace dlib
...
@@ -169,7 +169,7 @@ namespace dlib
item
.
add
(
d
,
r
);
item
.
add
(
d
,
r
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type hash_map_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type hash_map_kernel_1"
);
...
...
dlib/hash_set/hash_set_kernel_1.h
View file @
f9b7ad9a
...
@@ -151,7 +151,7 @@ namespace dlib
...
@@ -151,7 +151,7 @@ namespace dlib
item
.
add
(
temp
);
item
.
add
(
temp
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type hash_set_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type hash_set_kernel_1"
);
...
...
dlib/hash_table/hash_table_kernel_1.h
View file @
f9b7ad9a
...
@@ -226,7 +226,7 @@ namespace dlib
...
@@ -226,7 +226,7 @@ namespace dlib
item
.
add
(
d
,
r
);
item
.
add
(
d
,
r
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type hash_table_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type hash_table_kernel_1"
);
...
...
dlib/hash_table/hash_table_kernel_2.h
View file @
f9b7ad9a
...
@@ -194,7 +194,7 @@ namespace dlib
...
@@ -194,7 +194,7 @@ namespace dlib
item
.
add
(
d
,
r
);
item
.
add
(
d
,
r
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type hash_table_kernel_2"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type hash_table_kernel_2"
);
...
...
dlib/map/map_kernel_1.h
View file @
f9b7ad9a
...
@@ -160,7 +160,7 @@ namespace dlib
...
@@ -160,7 +160,7 @@ namespace dlib
item
.
add
(
d
,
r
);
item
.
add
(
d
,
r
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type map_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type map_kernel_1"
);
...
...
dlib/optimization/optimization_bobyqa.h
View file @
f9b7ad9a
...
@@ -289,7 +289,7 @@ namespace dlib
...
@@ -289,7 +289,7 @@ namespace dlib
doublereal
ratio
=
0
,
dnorm
=
0
,
vquad
=
0
,
pqold
=
0
,
tenth
=
0
;
doublereal
ratio
=
0
,
dnorm
=
0
,
vquad
=
0
,
pqold
=
0
,
tenth
=
0
;
integer
itest
;
integer
itest
;
doublereal
sumpq
,
scaden
;
doublereal
sumpq
,
scaden
;
doublereal
errbig
,
cauchy
,
fracsq
,
biglsq
,
densav
;
doublereal
errbig
,
cauchy
=
0
,
fracsq
,
biglsq
,
densav
;
doublereal
bdtest
;
doublereal
bdtest
;
doublereal
crvmin
,
frhosq
;
doublereal
crvmin
,
frhosq
;
doublereal
distsq
;
doublereal
distsq
;
...
...
dlib/queue/queue_kernel_1.h
View file @
f9b7ad9a
...
@@ -184,7 +184,7 @@ namespace dlib
...
@@ -184,7 +184,7 @@ namespace dlib
item
.
enqueue
(
temp
);
item
.
enqueue
(
temp
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type queue_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type queue_kernel_1"
);
...
...
dlib/queue/queue_kernel_2.h
View file @
f9b7ad9a
...
@@ -202,7 +202,7 @@ namespace dlib
...
@@ -202,7 +202,7 @@ namespace dlib
item
.
enqueue
(
temp
);
item
.
enqueue
(
temp
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type queue_kernel_2"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type queue_kernel_2"
);
...
...
dlib/sequence/sequence_kernel_1.h
View file @
f9b7ad9a
...
@@ -379,7 +379,7 @@ namespace dlib
...
@@ -379,7 +379,7 @@ namespace dlib
item
.
add
(
i
,
temp
);
item
.
add
(
i
,
temp
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type sequence_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type sequence_kernel_1"
);
...
...
dlib/sequence/sequence_kernel_2.h
View file @
f9b7ad9a
...
@@ -199,7 +199,7 @@ namespace dlib
...
@@ -199,7 +199,7 @@ namespace dlib
item
.
add
(
i
,
temp
);
item
.
add
(
i
,
temp
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type sequence_kernel_2"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type sequence_kernel_2"
);
...
...
dlib/set/set_kernel_1.h
View file @
f9b7ad9a
...
@@ -146,7 +146,7 @@ namespace dlib
...
@@ -146,7 +146,7 @@ namespace dlib
item
.
add
(
temp
);
item
.
add
(
temp
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type set_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type set_kernel_1"
);
...
...
dlib/sliding_buffer/sliding_buffer_kernel_1.h
View file @
f9b7ad9a
...
@@ -215,7 +215,7 @@ namespace dlib
...
@@ -215,7 +215,7 @@ namespace dlib
deserialize
(
item
[
i
],
in
);
deserialize
(
item
[
i
],
in
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type sliding_buffer_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type sliding_buffer_kernel_1"
);
...
...
dlib/stack/stack_kernel_1.h
View file @
f9b7ad9a
...
@@ -183,7 +183,7 @@ namespace dlib
...
@@ -183,7 +183,7 @@ namespace dlib
item
.
push
(
temp
);
item
.
push
(
temp
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
clear
();
item
.
clear
();
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type stack_kernel_1"
);
throw
serialization_error
(
e
.
info
+
"
\n
while deserializing object of type stack_kernel_1"
);
...
...
dlib/static_set/static_set_kernel_1.h
View file @
f9b7ad9a
...
@@ -61,7 +61,7 @@ namespace dlib
...
@@ -61,7 +61,7 @@ namespace dlib
deserialize
(
item
.
d
[
i
],
in
);
deserialize
(
item
.
d
[
i
],
in
);
}
}
}
}
catch
(
serialization_error
e
)
catch
(
serialization_error
&
e
)
{
{
item
.
set_size
=
0
;
item
.
set_size
=
0
;
if
(
item
.
d
)
if
(
item
.
d
)
...
...
dlib/test/compress_stream.cpp
View file @
f9b7ad9a
...
@@ -75,7 +75,7 @@ namespace
...
@@ -75,7 +75,7 @@ namespace
bool
detected_error
=
false
;
bool
detected_error
=
false
;
try
{
try
{
test
.
decompress
(
sin
,
sout
);
test
.
decompress
(
sin
,
sout
);
}
catch
(
typename
cs
::
decompression_error
e
)
}
catch
(
typename
cs
::
decompression_error
&
e
)
{
{
detected_error
=
true
;
detected_error
=
true
;
++
count
;
++
count
;
...
...
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