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
03de84fa
Commit
03de84fa
authored
Jun 19, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made a minor change which apparently avoids a bug in gcc 5.4.2 on Ubuntu 11.04.
parent
f918e2a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
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