Does auto:ptr::reset call destructor?
<p>I have a class as given below can anybody give this answer for me/    </p>

<pre><code>     class XYZ{

       XYZ()
       {
       }

      ~XYZ()
      {
        abc(PTREE);
      }

      void abc(u_short port)
      {
        ///dasfs
      }
    };


    auto_ptr&lt;XYZ&gt; a;

    for(i=0;i &lt;2;i++)
    {
       a.reset(new XYZ());
    }
</code></pre>

<p>This reset doesn't call the destructor can anybody explain why? </p>
