diff --git a/include/oneapi/tbb/task_group.h b/include/oneapi/tbb/task_group.h index 287a457cc0..21c6835f5b 100644 --- a/include/oneapi/tbb/task_group.h +++ b/include/oneapi/tbb/task_group.h @@ -551,7 +551,7 @@ class task_group_base : no_copy { task_group_status wait() { bool cancellation_status = false; try_call([&] { - d1::wait( m_wait_vertex.get_context(), context()); + d1::wait(m_wait_vertex.get_context(), context()); }).on_completion([&] { // TODO: the reset method is not thread-safe. Ensure the correct behavior. cancellation_status = m_context.is_group_execution_cancelled();