Get a pointer pointer for a smart pointer
<p>I have a smart pointer for an object, that I need to pass to a method, that only accepts a pointer pointer.</p>

<p>Here's an example, where the original smart pointer loses the ownership.</p>

<pre><code>int main(int argc, char* argv[])
{
    std::unique_pointer&lt;pcap_if_t&gt; object;

    auto object_pointer = object.get();
    pcap_findalldevs(&amp;object_pointer, ...); // The unique_ptr loses ownership after being passed to the function
}
</code></pre>

<p>How would I accomplish this, without the original smart pointer losing the pointer ownership?</p>

<p><strong>EDIT:</strong><br>
The function I'm calling is <em>pcap_findalldevs</em> in libpcap. I'm afraid that the function might be the cause of losing ownership.<br>
I have updated my code example to reflect the what I actually do.</p>