Bug 263857 - MediaTime isn't usable in an Expected
Summary: MediaTime isn't usable in an Expected
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-29 15:22 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-10-30 00:11 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.