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

Quick fixes for <gsl-lite/gsl-lite.hpp>; cosmetic changes #226

Merged
merged 6 commits into from
Jan 11, 2020

Conversation

mbeutel
Copy link
Collaborator

@mbeutel mbeutel commented Jan 11, 2020

The suggested use of namespace aliases in libraries using gsl-lite leads to warnings with some older compilers, so we explicitly refer to ::gsl inside the library.

Also, cherry-pick the CUDA-related fixes from #225.

By assuming that signed integers use two's complement representation, we
rewrite the bounds check as an unsigned comparison, which both avoids
the NVCC's warning about comparing unsigned numbers to 0 and saves one
comparison.

Fixes gsl-lite#223.
@mbeutel mbeutel merged commit a570632 into gsl-lite:master Jan 11, 2020
@mbeutel mbeutel deleted the feature/new-header-fixes branch January 15, 2020 17:01
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.

1 participant