From 4febcb1fe722a800e531c1e37195503b030bf421 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 3 Jul 2023 16:38:01 -0400 Subject: [PATCH] fix quicktest --- tests/quick_tests/taskflow.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/quick_tests/taskflow.cc b/tests/quick_tests/taskflow.cc index 19a91f7b33..967e4e9b01 100644 --- a/tests/quick_tests/taskflow.cc +++ b/tests/quick_tests/taskflow.cc @@ -17,6 +17,7 @@ #include +#include #include #include @@ -47,9 +48,9 @@ test1() B.precede(C); auto p = - taskflow.parallel_for(1, 11, 1, [&](int idx) { counter.fetch_add(idx); }); + taskflow.for_each_index(1, 11, 1, [&](int idx) { counter.fetch_add(idx); }); - C.precede(p.first); + C.precede(p); executor.run(taskflow).wait(); -- 2.39.5