Span
has some issues:
- It does not support fixed-size spans, which are available through
std::span
. - It is confusing to have it available and in use at the same time with
std::span
. - It does not obey the standard library iterator build hardening flags. See #31272 for a discussion.
All of the issues are harmless, because both types are type-safe and can even implicitly convert into each other in most contexts.
However, exclusively using std::span
seems less confusing, so do it here with a scripted-diff.