[Webkit-unassigned] [Bug 187971] Move-constructing NeverDestroyed should move construct underlying object instead of copy constructing it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 24 13:45:51 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=187971

--- Comment #1 from Daniel Bates <dbates at webkit.org> ---
The issue is that the NeverDestroyed move constructor is moving the passed NeverDestroyed object instead of the underlying storage when placement-newing T. As a result, the compiler implicitly converts the to-be-moved-from NeverDestroyed to const T& and invokes T's copy constructor.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180724/0edc4371/attachment.html>


More information about the webkit-unassigned mailing list