[Webkit-unassigned] [Bug 192728] wtf/Optional.h: move-constructor and move-assignment operator should disengage the value being moved from

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 14 17:01:30 PST 2018


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

--- Comment #4 from David Kilzer (:ddkilzer) <ddkilzer at webkit.org> ---
One of the most frustrating things about the behavior of the move-constructor and move-assignment operator is that optional::swap() does what you'd expect by fully disengaging the value after the swap!

<https://trac.webkit.org/browser/webkit/trunk/Source/WTF/wtf/Optional.h#L497>

-- 
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/20181215/5caca19f/attachment.html>


More information about the webkit-unassigned mailing list