1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England

Share This Page