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
adc4d682
Commit
adc4d682
authored
Aug 21, 2014
by
Davis King
Browse files
Made code work in C++03 and fixed a linker error
parent
878ded28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dlib/image_loader/load_image.h
dlib/image_loader/load_image.h
+3
-3
No files found.
dlib/image_loader/load_image.h
View file @
adc4d682
...
@@ -23,11 +23,11 @@ namespace dlib
...
@@ -23,11 +23,11 @@ namespace dlib
UNKNOWN
UNKNOWN
};
};
type
read_type
(
const
std
::
string
&
file
N
ame
)
inline
type
read_type
(
const
std
::
string
&
file
_n
ame
)
{
{
std
::
ifstream
file
(
file
N
ame
,
std
::
ios
::
in
|
std
::
ios
::
binary
);
std
::
ifstream
file
(
file
_n
ame
.
c_str
()
,
std
::
ios
::
in
|
std
::
ios
::
binary
);
if
(
!
file
)
if
(
!
file
)
throw
image_load_error
(
"Unable to open file: "
+
file
N
ame
);
throw
image_load_error
(
"Unable to open file: "
+
file
_n
ame
);
char
buffer
[
9
];
char
buffer
[
9
];
file
.
read
((
char
*
)
buffer
,
8
);
file
.
read
((
char
*
)
buffer
,
8
);
...
...
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