Closed hadrielk closed 11 months ago
In C++20 std::span supports iterator arguments for a couple of its constructor signatures. boost::span does not - only raw pointers.
std::span
boost::span
That means one cannot do this:
std::vector<int> vec{1,2,3,4}; boost::span<int> sp1(vec.begin(), vec.end()); // error boost::span<int> sp2(vec.begin(), 2); // error
I can provide a PR, if you wish.
See https://github.com/boostorg/core/issues/119
Oops, I should have looked at the close issues - thanks @glenfe.
In C++20
std::span
supports iterator arguments for a couple of its constructor signatures.boost::span
does not - only raw pointers.That means one cannot do this:
I can provide a PR, if you wish.