[Webkit-unassigned] [Bug 164922] [SOUP] Simplify custom protocols handler implementation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 22 10:28:23 PST 2016


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

--- Comment #20 from Darin Adler <darin at apple.com> ---
(In reply to comment #18)
> I learned it recently
> the hard way in bug #164631. When using the sink paramater there's no move
> constructor for the parameter so that when the value is moved the ownership
> is transferred, but the moved value is not set to nullptr, you have to use
> exchange or swap in that particular case if you need to ensure the value is
> nullptr after the move.

I need to learn more about this. Could you show me a simple test program that demonstrates a moved value and a unique_ptr that is not set to nullptr after the value is moved out? I don’t think this exists, but a sample .cpp file could help me understand.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161122/de3c2227/attachment-0001.html>


More information about the webkit-unassigned mailing list