We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
std::span fails to construct from an array<T, 1>
array<T, 1>
auto v= nda::vector<long>{1,2,3}; auto s std::span<long>{v.begin(), v.end()};
The issue is that the iterator of array<T, 1> should be a contiguous_iterator, not just a random_access_iterator
Expected behavior:
It should construct the span
Actual behavior:
Does not compile.
unstable (OS X).
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
parcollet
No branches or pull requests
Description
std::span fails to construct from an
array<T, 1>
Steps to Reproduce
The issue is that the iterator of
array<T, 1>
should be a contiguous_iterator, not just a random_access_iteratorExpected behavior:
It should construct the span
Actual behavior:
Does not compile.
Versions
unstable (OS X).
The text was updated successfully, but these errors were encountered: