Bug 263857

Summary: MediaTime isn't usable in an Expected
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=263859

Jean-Yves Avenard [:jya]
Reported 2023-10-29 15:22:36 PDT
Consider the following: ``` using Test = Expected<MediaTime, int>; Test test1; Test test2; test1 = WTFMove(test2); ``` This will fail to compile with: `Functional-style cast from '__libcpp_remove_reference_t<expected<MediaTime, int> &>' (aka 'std::experimental::expected<WTF::MediaTime, int>') to 'type' (aka 'expected<WTF::MediaTime, int>') uses deleted function`
Attachments
Radar WebKit Bug Importer
Comment 1 2023-10-29 15:29:59 PDT
Jean-Yves Avenard [:jya]
Comment 2 2023-10-29 17:05:07 PDT
EWS
Comment 3 2023-10-30 00:11:25 PDT
Committed 269918@main (c7327fa6d918): <https://commits.webkit.org/269918@main> Reviewed commits have been landed. Closing PR #19698 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.