| Summary: | MediaTime isn't usable in an Expected | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Component: | Media | Assignee: | 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 | ||
Pull request: https://github.com/WebKit/WebKit/pull/19698 Committed 269918@main (c7327fa6d918): <https://commits.webkit.org/269918@main> Reviewed commits have been landed. Closing PR #19698 and removing active labels. |
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`