Open parcollet opened 3 months ago
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).
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).