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
03de84fa
Commit
03de84fa
authored
Jun 19, 2011
by
Davis King
Browse files
Made a minor change which apparently avoids a bug in gcc 5.4.2 on Ubuntu 11.04.
parent
f918e2a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dlib/cmd_line_parser/cmd_line_parser_kernel_1.h
dlib/cmd_line_parser/cmd_line_parser_kernel_1.h
+4
-1
No files found.
dlib/cmd_line_parser/cmd_line_parser_kernel_1.h
View file @
03de84fa
...
@@ -547,7 +547,10 @@ namespace dlib
...
@@ -547,7 +547,10 @@ namespace dlib
for
(
unsigned
long
k
=
0
;
k
<
num
;
++
k
)
for
(
unsigned
long
k
=
0
;
k
<
num
;
++
k
)
{
{
string_type
name
;
string_type
name
;
name
=
temp
[
k
];
// Doing this instead of name = temp[k] seems to avoid a bug in g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
// which results in name[0] having the wrong value.
name
.
resize
(
1
);
name
[
0
]
=
temp
[
k
];
// make sure this name is defined
// make sure this name is defined
...
...
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