[webkit-dev] Watch out for std::optional's move constructor
Fujii Hironori
fujii.hironori at gmail.com
Mon Dec 17 00:28:51 PST 2018
On Mon, Dec 17, 2018 at 4:55 PM Maciej Stachowiak <mjs at apple.com> wrote:
>
> Maybe there is an option I am missing? Out of these, I think (2) is likely
> the best, on the whole.
>
>
Reasonable.
But, some classes need to be modification for that.
For example, WTF::URL is using default move constructor.
I think we should add the move constructor to restore the valid null value
after move.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20181217/78b20fb0/attachment.html>
More information about the webkit-dev
mailing list