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

Description Jean-Yves Avenard [:jya] 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`
Comment 1 Radar WebKit Bug Importer 2023-10-29 15:29:59 PDT
<rdar://problem/117659224>
Comment 2 Jean-Yves Avenard [:jya] 2023-10-29 17:05:07 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19698
Comment 3 EWS 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.