Skip to content

Conversation

@aelovikov-intel
Copy link
Contributor

Fixes #20722.

Comment on lines +1460 to +1461
void SetHostTask(std::function<void()> Func);
void SetHostTask(std::function<void(interop_handle)> Func);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::function is used for type-erasure, so "by value" semantics looks correct to me.

Copy link
Contributor

@uditagarwal97 uditagarwal97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aelovikov-intel aelovikov-intel merged commit 24a0cf3 into intel:sycl Nov 24, 2025
45 of 46 checks passed
@aelovikov-intel aelovikov-intel deleted the host-task-forward branch November 24, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Coverity] Move from a user-supplied l-value reference

2 participants