Skip to content

Commit 56129d1

Browse files
committed
Fix new overloads
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 276cc80 commit 56129d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/include/sycl/ext/oneapi/experimental/enqueue_functions.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ template <typename CommandGroupFunc>
108108
void submit(queue Q, CommandGroupFunc &&CGF,
109109
const sycl::detail::code_location &CodeLoc =
110110
sycl::detail::code_location::current()) {
111-
submit(Q, empty_properties_t{}, CGF, CodeLoc);
111+
submit(Q, empty_properties_t{}, std::forward<CommandGroupFunc>(CGF), CodeLoc);
112112
}
113113

114114
template <typename CommandGroupFunc, typename PropertiesT>
@@ -123,8 +123,8 @@ template <typename CommandGroupFunc>
123123
event submit_with_event(queue Q, CommandGroupFunc &&CGF,
124124
const sycl::detail::code_location &CodeLoc =
125125
sycl::detail::code_location::current()) {
126-
return submit_with_event(Q, std::forward<CommandGroupFunc>(CGF),
127-
empty_properties_t{}, CodeLoc);
126+
return submit_with_event(Q, empty_properties_t{},
127+
std::forward<CommandGroupFunc>(CGF), CodeLoc);
128128
}
129129

130130
template <typename KernelName = sycl::detail::auto_name, typename KernelType>

0 commit comments

Comments
 (0)