Assertion Failed Auto_Ptr Not Deferencable
<p>I'm using std::auto_ptr in C++ and below is my code,</p>

<pre><code>void fSample(std::auto_ptr&lt;CFoo&gt; pParam)
{
    CFoo* pFoo = pParam.release();
    fTodo(pFoo);
}
</code></pre>

<p>The code above gives me <b><code>Assertion failed: auto_ptr not derefencable</code></b> runtime error.</p>

<p>Please advise.</p>

<p>Thanks!</p>
