[webkit-dev] Watch out for std::optional's move constructor

Fujii Hironori fujii.hironori at gmail.com
Fri Dec 14 16:17:35 PST 2018


On Sat, Dec 15, 2018 at 8:46 AM Chris Dumez <cdumez at apple.com> wrote:

>
>
> This is the latest one: https://trac.webkit.org/changeset/239228/webkit
>

This expression WTFMove(*m_pendingWebsitePolicies) doesn't move
std::optional<WebsitePoliciesData>, but moves the content of the
std::optional, WebsitePoliciesData. I think your proposal doesn't work for
this code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20181215/7d7fa65c/attachment.html>


More information about the webkit-dev mailing list