RESOLVED FIXED 237178
Begin transition from WTF::Span to std::span
https://bugs.webkit.org/show_bug.cgi?id=237178
Summary Begin transition from WTF::Span to std::span
Alex Christensen
Reported 2022-02-24 19:55:48 PST
Begin transition from WTF::Span to std::span
Attachments
Patch (172.30 KB, patch)
2022-02-24 19:59 PST, Alex Christensen
no flags
Patch (47.29 KB, patch)
2022-04-22 11:40 PDT, Alex Christensen
no flags
Patch with explicit conversions (55.00 KB, patch)
2022-04-28 15:48 PDT, Ross Kirsling
no flags
Patch (59.80 KB, patch)
2022-04-28 17:39 PDT, Alex Christensen
ews-feeder: commit-queue-
Alex Christensen
Comment 1 2022-02-24 19:59:17 PST
Alex Christensen
Comment 2 2022-02-25 09:08:38 PST
Comment on attachment 453169 [details] Patch Apparently Visual Studio 2019's C++20 implementation doesn't have the span header.
Radar WebKit Bug Importer
Comment 3 2022-03-03 19:56:19 PST
Alex Christensen
Comment 4 2022-04-22 11:40:26 PDT
Ross Kirsling
Comment 5 2022-04-28 15:48:32 PDT
Created attachment 458551 [details] Patch with explicit conversions Here's an updated patch that builds on Windows.
Alex Christensen
Comment 6 2022-04-28 17:39:05 PDT
Alex Christensen
Comment 7 2022-04-28 22:25:40 PDT
Comment on attachment 458558 [details] Patch Looks like std::span requires GCC 10. Bummer.
Don Olmstead
Comment 8 2022-04-29 10:20:15 PDT
(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?
Alex Christensen
Comment 9 2022-05-02 09:08:57 PDT
I guess we will have to wait another year for this, but my goal is to remove WTF::Span.
David Kilzer (:ddkilzer)
Comment 10 2023-03-05 09:44:45 PST
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.
Ross Kirsling
Comment 11 2023-03-05 20:16:14 PST
Just for the record, it's not just GCC; PS port needed a fix too: https://github.com/WebKit/WebKit/commit/f105d6117bd798d28c016d2f2a639e693afbeefa
Alex Christensen
Comment 12 2023-05-03 13:42:21 PDT
EWS
Comment 13 2023-05-11 20:20:14 PDT
Committed 263998@main (0fa955e615eb): <https://commits.webkit.org/263998@main> Reviewed commits have been landed. Closing PR #13414 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.