query for auto_ptr implementation

Discussion in 'C' started by sanjaypanshikar, May 4, 2010.

  1. sanjaypanshikar

    sanjaypanshikar New Member

    Joined:
    May 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    IT
    Location:
    Pune
    While going through the auto_ptr implementation, i come across one query.

    The auto_ptr_ref struct is specifically designed for copying the non const auto_ptr s. I am not able to understand the exact need of this auto_ptr_ref in copy construcotr and assignment operator of auto_ptr class.

    It would be of great help if some one clarifies it ....


    thanks in advance

    -sanjay
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice