@@ -190,12 +190,12 @@ event queue::mem_advise(const void *Ptr, size_t Length, int Advice,
190190// / TODO: Unused. Remove these when ABI-break window is open.
191191event queue::submit_impl (std::function<void (handler &)> CGH,
192192 const detail::code_location &CodeLoc) {
193- return submit_with_event_impl (CGH, {}, CodeLoc, true );
193+ return submit_with_event_impl (std::move ( CGH) , {}, CodeLoc, true );
194194}
195195event queue::submit_impl (std::function<void (handler &)> CGH,
196196 const detail::code_location &CodeLoc,
197197 bool IsTopCodeLoc) {
198- return submit_with_event_impl (CGH, {}, CodeLoc, IsTopCodeLoc);
198+ return submit_with_event_impl (std::move ( CGH) , {}, CodeLoc, IsTopCodeLoc);
199199}
200200
201201event queue::submit_impl (std::function<void (handler &)> CGH, queue SecondQueue,
@@ -210,27 +210,27 @@ event queue::submit_impl(std::function<void(handler &)> CGH, queue SecondQueue,
210210
211211void queue::submit_without_event_impl (std::function<void (handler &)> CGH,
212212 const detail::code_location &CodeLoc) {
213- submit_without_event_impl (CGH, {}, CodeLoc, true );
213+ submit_without_event_impl (std::move ( CGH) , {}, CodeLoc, true );
214214}
215215void queue::submit_without_event_impl (std::function<void (handler &)> CGH,
216216 const detail::code_location &CodeLoc,
217217 bool IsTopCodeLoc) {
218- submit_without_event_impl (CGH, {}, CodeLoc, IsTopCodeLoc);
218+ submit_without_event_impl (std::move ( CGH) , {}, CodeLoc, IsTopCodeLoc);
219219}
220220
221221event queue::submit_impl_and_postprocess (
222222 std::function<void (handler &)> CGH, const detail::code_location &CodeLoc,
223223 const detail::SubmitPostProcessF &PostProcess) {
224224 detail::SubmissionInfo SI{};
225225 SI.PostProcessorFunc () = std::move (PostProcess);
226- return submit_with_event_impl (CGH, SI, CodeLoc, true );
226+ return submit_with_event_impl (std::move ( CGH) , SI, CodeLoc, true );
227227}
228228event queue::submit_impl_and_postprocess (
229229 std::function<void (handler &)> CGH, const detail::code_location &CodeLoc,
230230 const detail::SubmitPostProcessF &PostProcess, bool IsTopCodeLoc) {
231231 detail::SubmissionInfo SI{};
232232 SI.PostProcessorFunc () = std::move (PostProcess);
233- return submit_with_event_impl (CGH, SI, CodeLoc, IsTopCodeLoc);
233+ return submit_with_event_impl (std::move ( CGH) , SI, CodeLoc, IsTopCodeLoc);
234234}
235235
236236event queue::submit_impl_and_postprocess (
0 commit comments