Skip to content

[SYCL] Follow up adding noexcept to h_item - #23418

Open
Robertkq wants to merge 3 commits into
intel:syclfrom
Robertkq:Robertkq/23397
Open

Robertkq wants to merge 3 commits into
intel:syclfrom
Robertkq:Robertkq/23397

Conversation

@Robertkq

@Robertkq Robertkq commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

fixes #23397
follow up of #23184
Adds noexcept keyword to move constructor & assignment, as well as default explicit destructor
Guards old member operators in favor of hidden friend operators as per SYCL spec

@Robertkq
Robertkq marked this pull request as ready for review October 8, 2026 20:04
@Robertkq
Robertkq requested a review from a team as a code owner October 8, 2026 20:04
@Robertkq

Robertkq commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

also asking review from @dm-vodopyanov @KornevNikita (king ping :) )

thanks!

@KornevNikita KornevNikita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Also, this class doesn't provide hidden friend operators

@Robertkq

Robertkq commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

LGTM. Also, this class doesn't provide hidden friend operators

Should they be added in this PR or a follow-up issue+PR ?

@KornevNikita

Copy link
Copy Markdown
Contributor

LGTM. Also, this class doesn't provide hidden friend operators

Should they be added in this PR or a follow-up issue+PR ?

It's up to you. I guess it'd be easier to just add it in this PR

@Robertkq

Robertkq commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

It's up to you. I guess it'd be easier to just add it in this PR

Ok, I think I implemented it correctly, can you please take another look?

@Robertkq
Robertkq requested a review from KornevNikita October 9, 2026 11:40

This branch has not been deployed

No deployments
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.

[SYCL] h_item move members should be explicitly noexcept and follow the rule of five

2 participants