Passing object ownership in C++
<p>What is the best way to indicate that an object wants to take ownership of another object? So far, I've been using a <code>std::auto_ptr</code> in the public interface, so the client knows that the interface wants to take ownership of the passed object.</p>

<p>However, the latest GCC tells me <code>auto_ptr</code> is deprecated, so I wonder what is recommended? <code>boost::interprocess::unique_pointer</code> looks like a good candidate, but is this really the best solution out there?</p>
