Commit 94d1e787 authored by Davis King's avatar Davis King

Changed code slightly to avoid a bug in gcc 4.1.2

parent 99a9c276
......@@ -227,7 +227,8 @@ void example_without_using_lambda_functions()
int sum = 0;
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment