Skip to content

[SYCL] Replace std::true/false_t by std::true/false_type. #10068

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

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

maarquitos14
Copy link
Contributor

std::true_t and std::false_t don't exist, the correct ones are std::true_type and std::false_type.

@maarquitos14 maarquitos14 requested a review from a team as a code owner June 26, 2023 14:47
@maarquitos14 maarquitos14 temporarily deployed to aws June 26, 2023 15:04 — with GitHub Actions Inactive
@@ -141,7 +141,7 @@ struct all_devices_have<aspect::ext_intel_legacy_image>

#ifdef __SYCL_ANY_DEVICE_HAS_ANY_ASPECT__
// Special case where any_device_has is trivially true.
template <aspect Aspect> struct any_device_has : std::true_t {};
template <aspect Aspect> struct any_device_has : std::true_type {};
Copy link
Contributor

Choose a reason for hiding this comment

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

We use undefined type, and no tests detects this!?!

Copy link
Contributor

Choose a reason for hiding this comment

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

This implementation was intended as base work for upcoming patches. The path could not previously be hit, unless someone from the outside defined the macro, so it was not actually an issue.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. Please, make sure it's covered with tests in "upcoming patches".

@maarquitos14 maarquitos14 temporarily deployed to aws June 26, 2023 15:45 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen merged commit a0d5554 into intel:sycl Jun 27, 2023
Chenyang-L pushed a commit that referenced this pull request Jul 11, 2023
`std::true_t` and `std::false_t` don't exist, the correct ones are
`std::true_type` and `std::false_type`.

Signed-off-by: Maronas, Marcos <[email protected]>
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.

4 participants