diff --git a/new_examples/synchronization/histogram_02_unsafe_parallel.cpp b/new_examples/synchronization/histogram_02_unsafe_parallel.cpp index 4fa3fe4865..0e4a748320 100644 --- a/new_examples/synchronization/histogram_02_unsafe_parallel.cpp +++ b/new_examples/synchronization/histogram_02_unsafe_parallel.cpp @@ -50,7 +50,7 @@ int main(int argc, char** argv) { // Parallel execution std::vector hist_p(num_bins); t0 = tbb::tick_count::now(); - parallel_for(tbb::blocked_range{0, image.size()}, + tbb::parallel_for(tbb::blocked_range{0, image.size()}, [&](const tbb::blocked_range& r) { for (size_t i = r.begin(); i < r.end(); ++i)