Begin transition from WTF::Span to std::span
Created attachment 453169 [details] Patch
Comment on attachment 453169 [details] Patch Apparently Visual Studio 2019's C++20 implementation doesn't have the span header.
<rdar://problem/89792762>
Created attachment 458160 [details] Patch
Created attachment 458551 [details] Patch with explicit conversions Here's an updated patch that builds on Windows.
Created attachment 458558 [details] Patch
Comment on attachment 458558 [details] Patch Looks like std::span requires GCC 10. Bummer.
(In reply to Alex Christensen from comment #7) > Comment on attachment 458558 [details] > Patch > > Looks like std::span requires GCC 10. Bummer. Can you do a check for it in CMake for std::span and if its there use it otherwise use our implementation of std::span?
I guess we will have to wait another year for this, but my goal is to remove WTF::Span.
Bug 253377 started using std::span for all Apple ports (including any port compiling with clang or MSVC, plus ports that compile with GCC that pass a compile test in CMake) behind a WTF::makeSpan() adapter. Once all ports support std::span, the WTF::makeSpan() adapter will be removed.
Just for the record, it's not just GCC; PS port needed a fix too: https://github.com/WebKit/WebKit/commit/f105d6117bd798d28c016d2f2a639e693afbeefa
Pull request: https://github.com/WebKit/WebKit/pull/13414
Committed 263998@main (0fa955e615eb): <https://commits.webkit.org/263998@main> Reviewed commits have been landed. Closing PR #13414 and removing active labels.