Does this destructor get called or not?
I have a class as given below can anybody give this answer for me/    

    class XYZ{
            
           XYZ()
           {
           }
        
          ~XYZ()
          {
            abc(PTREE);
          }
        
          void abc(u_short port)
          {
            ///dasfs
          }
        };
         
        
        auto_ptr<XYZ> a;
    
    a.reset(new XYZ());

 
will this reset call the destructor of XYZ?
Does this destructor get called or not?
===

I have a class as given below can anybody give this answer for me/    

    class XYZ{
            
           XYZ()
           {
           }
        
          ~XYZ()
          {
            abc(PTREE);
          }
        
          void abc(u_short port)
          {
            ///dasfs
          }
        };
         
        
        auto_ptr<XYZ> a;
    
    a.reset(new XYZ());

 
will this reset call the destructor of XYZ?