<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [SOUP] Simplify custom protocols handler implementation"
href="https://bugs.webkit.org/show_bug.cgi?id=164922#c20">Comment # 20</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [SOUP] Simplify custom protocols handler implementation"
href="https://bugs.webkit.org/show_bug.cgi?id=164922">bug 164922</a>
from <span class="vcard"><a class="email" href="mailto:darin@apple.com" title="Darin Adler <darin@apple.com>"> <span class="fn">Darin Adler</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=164922#c18">comment #18</a>)
<span class="quote">> I learned it recently
> the hard way in <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - REGRESSION: API test _WKDownload.ConvertResponseToDownload is a flaky timeout"
href="show_bug.cgi?id=164631">bug #164631</a>. 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.</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>