&amp; b, std::auto_ptr&lt;A&gt; a)
{
    b.insert(a.get());
    a.release();
}
</pre>
    Wrap that as B.add. Note that pointers returned via <code><a href=
    "manage_new_object.html#manage_new_object-spec">manage_new_object</a></code>
    will also be held by <code>auto_ptr</code>, so this transfer-of-ownership
    will also work correctly.

    <hr>
    <h2><a name="slow_compilation">Compilation takes too much time and eats too
            much memory!  What can I do to make it faster?</a></h2>
    <p>
