@@ -199,12 +199,12 @@ event queue::mem_advise(const void *Ptr, size_t Length, int Advice,
199199// / TODO: Unused. Remove these when ABI-break window is open.
200200event queue::submit_impl (std::function<void (handler &)> CGH,
201201 const detail::code_location &CodeLoc) {
202- return submit_with_event_impl (CGH, {}, CodeLoc, true );
202+ return submit_with_event_impl (std::move ( CGH) , {}, CodeLoc, true );
203203}
204204event queue::submit_impl (std::function<void (handler &)> CGH,
205205 const detail::code_location &CodeLoc,
206206 bool IsTopCodeLoc) {
207- return submit_with_event_impl (CGH, {}, CodeLoc, IsTopCodeLoc);
207+ return submit_with_event_impl (std::move ( CGH) , {}, CodeLoc, IsTopCodeLoc);
208208}
209209
210210event queue::submit_impl (std::function<void (handler &)> CGH, queue SecondQueue,
@@ -219,27 +219,27 @@ event queue::submit_impl(std::function<void(handler &)> CGH, queue SecondQueue,
219219
220220void queue::submit_without_event_impl (std::function<void (handler &)> CGH,
221221 const detail::code_location &CodeLoc) {
222- submit_without_event_impl (CGH, {}, CodeLoc, true );
222+ submit_without_event_impl (std::move ( CGH) , {}, CodeLoc, true );
223223}
224224void queue::submit_without_event_impl (std::function<void (handler &)> CGH,
225225 const detail::code_location &CodeLoc,
226226 bool IsTopCodeLoc) {
227- submit_without_event_impl (CGH, {}, CodeLoc, IsTopCodeLoc);
227+ submit_without_event_impl (std::move ( CGH) , {}, CodeLoc, IsTopCodeLoc);
228228}
229229
230230event queue::submit_impl_and_postprocess (
231231 std::function<void (handler &)> CGH, const detail::code_location &CodeLoc,
232232 const detail::SubmitPostProcessF &PostProcess) {
233233 detail::SubmissionInfo SI{};
234234 SI.PostProcessorFunc () = std::move (PostProcess);
235- return submit_with_event_impl (CGH, SI, CodeLoc, true );
235+ return submit_with_event_impl (std::move ( CGH) , SI, CodeLoc, true );
236236}
237237event queue::submit_impl_and_postprocess (
238238 std::function<void (handler &)> CGH, const detail::code_location &CodeLoc,
239239 const detail::SubmitPostProcessF &PostProcess, bool IsTopCodeLoc) {
240240 detail::SubmissionInfo SI{};
241241 SI.PostProcessorFunc () = std::move (PostProcess);
242- return submit_with_event_impl (CGH, SI, CodeLoc, IsTopCodeLoc);
242+ return submit_with_event_impl (std::move ( CGH) , SI, CodeLoc, IsTopCodeLoc);
243243}
244244
245245event queue::submit_impl_and_postprocess (
0 commit comments