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

operator!= for layout_{left|right} is missing when C++20 isn't available #197

Closed
youyu3 opened this issue Oct 13, 2022 · 0 comments
Closed

Comments

@youyu3
Copy link
Contributor

youyu3 commented Oct 13, 2022

The check for MDSPAN_HAS_CXX_20 is incorrect. Should be #if !(MDSPAN_HAS_CXX_20).

youyu3 added a commit to youyu3/libcudacxx that referenced this issue Oct 13, 2022
* `throw` is not supported in device code, uses `assert` instead
* Converts `stride` of the other `mapping` into `size_t` before comparing the values, to avoid possible warning (error when `-Werror=sign-compare` is on)
* Fixes `operator!=` which is missing when C++20 isn't available (kokkos/mdspan#197)
crtrott added a commit that referenced this issue Jan 6, 2023
Fix the inequality operator in layout_left and layout_right, after #197
@crtrott crtrott closed this as completed Jan 31, 2023
mhoemmen added a commit to mhoemmen/mdspan that referenced this issue Jul 26, 2023
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

No branches or pull requests

2 participants