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
94d1e787
"vscode:/vscode.git/clone" did not exist on "7596c094a6c94f331dca40d3d34656e87750aad4"
Commit
94d1e787
authored
Mar 03, 2013
by
Davis King
Browse files
Changed code slightly to avoid a bug in gcc 4.1.2
parent
99a9c276
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/parallel_for_ex.cpp
examples/parallel_for_ex.cpp
+2
-1
No files found.
examples/parallel_for_ex.cpp
View file @
94d1e787
...
@@ -227,7 +227,8 @@ void example_without_using_lambda_functions()
...
@@ -227,7 +227,8 @@ void example_without_using_lambda_functions()
int
sum
=
0
;
int
sum
=
0
;
vect
.
assign
(
10
,
2
);
vect
.
assign
(
10
,
2
);
parallel_for
(
num_threads
,
0
,
vect
.
size
(),
function_object_sum
(
vect
,
sum
));
function_object_sum
funct
(
vect
,
sum
);
parallel_for
(
num_threads
,
0
,
vect
.
size
(),
funct
);
cout
<<
"sum: "
<<
sum
<<
endl
;
cout
<<
"sum: "
<<
sum
<<
endl
;
}
}
...
...
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