diff --git a/libsycl/include/sycl/__impl/queue.hpp b/libsycl/include/sycl/__impl/queue.hpp index 21ab1c046913..32b057104a16 100644 --- a/libsycl/include/sycl/__impl/queue.hpp +++ b/libsycl/include/sycl/__impl/queue.hpp @@ -350,14 +350,15 @@ public: template event parallel_for(nd_range executionRange, Rest &&...rest) { - return parallel_for(executionRange, {}, - std::forward(rest)...); + return parallel_for( + executionRange, std::vector{}, std::forward(rest)...); } template event parallel_for(nd_range executionRange, event depEvent, Rest &&...rest) { - return parallel_for(executionRange, {depEvent}, + return parallel_for(executionRange, + std::vector{depEvent}, std::forward(rest)...); }