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

Add explicit vec conversion #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

GagaLP
Copy link
Contributor

@GagaLP GagaLP commented Jan 27, 2025

This is the second part of a series of four pull requests addressing some SYCL clarifications for sycl::vec.

This pull request implements the behavior specified in KhronosGroup/SYCL-Docs#669 (comment), which adds explicit vec conversions.

@GagaLP GagaLP requested review from PeterTh and fknorr January 27, 2025 18:04
Comment on lines +72 to +73
template<typename From, typename To>
concept implicitly_convertible = requires { std::is_convertible_v<From, To>; };
Copy link
Collaborator

Choose a reason for hiding this comment

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

This appears unused?

Comment on lines +75 to +76
template<typename From, typename To>
concept explicitly_convertible = requires { static_cast<To>(std::declval<From>()); };
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion: explicitly_convertible_to

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.

2 participants