Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary/wrong consts #876

Merged
merged 2 commits into from
Nov 25, 2022
Merged

Remove unnecessary/wrong consts #876

merged 2 commits into from
Nov 25, 2022

Conversation

nilsfriess
Copy link
Collaborator

This PR removes a few consts, namely:

  • in include/hipSYCL/sycl/libkernel/item.hpp, the const for the member offset is removed to make objects of type item copyable;
  • in include/hipSYCL/sycl/libkernel/nd_range.hpp, the const for the members is removed for the same reason as above;
  • in include/hipSYCL/sycl/queue.hpp, the const in the second argument secondaryQueue of the submit method is removed, since inside the method, a non-const function of secondaryQueue is called, therefore causing a compile error.

Inside this `submit` method, the non-const `submit` function is called on the
argument `secondaryQueue`, which previously caused a compile error.
Copy link
Collaborator

@illuhad illuhad left a comment

Choose a reason for hiding this comment

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

Thanks!

@illuhad illuhad merged commit 56b6c1f into AdaptiveCpp:develop Nov 25, 2022
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.

None yet

2 participants