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 pattern std::mdspan<> const ... #40

Open
jamesETsmith opened this issue Sep 28, 2024 · 1 comment
Open

Remove pattern std::mdspan<> const ... #40

jamesETsmith opened this issue Sep 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jamesETsmith
Copy link
Contributor

General

We should remove the pattern std::mdspan<...> const .... For views, the const here doesn't prevent people from modifying the underlying data, just the view itself, which isn't usually a useful restriction.

@jamesETsmith jamesETsmith added the enhancement New feature or request label Sep 28, 2024
@stand-by
Copy link
Collaborator

I'd suggest to modify our use cases to std::mdspan<const T> where possible. This would preserve the constness of elements and provide “read only” access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants