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

Allow span(std::array<const T,N>) ? #2

Open
martinmoene opened this issue May 1, 2018 · 0 comments
Open

Allow span(std::array<const T,N>) ? #2

martinmoene opened this issue May 1, 2018 · 0 comments

Comments

@martinmoene
Copy link
Owner

martinmoene commented May 1, 2018

span-lite release 0.1.0 allows the construction of a span from std::array with a const value type.

However this is not supported by p0122r7.

Keep an eye on this and if needed, decide to allow or not such a difference from std::span. If it's different from std::span, add a notice to the test specification.

See also thread [isocpp-lib] P0122R7 (span): element_type instead of value_type in constructor taking std::aray? of 28-Apr-18, 15:21.

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

1 participant