The std::span
type is already used in some parts of the codebase, and in most contexts can implicitly convert to and from Span
. However, the two types are not identical in behavior and trying to use one over the other can result in compile failures in some contexts.
Fix all those issues by allowing either Span
or std::span
in any part of the codebase.
All of the changes are also required for the scripted-diff to replace Span
with std::span
in https://github.com/bitcoin/bitcoin/pull/31519