Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   query for auto_ptr implementation (http://www.go4expert.com/forums/query-autoptr-implementation-t21993/)

sanjaypanshikar 4May2010 18:25

query for auto_ptr implementation
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


xpi0t0s 5May2010 12:15

Re: query for auto_ptr implementation

Also try Googling; you are not likely to be the first person in computing history to ask this question http://lmgtfy.com/?q=auto_ptr_ref

All times are GMT +5.5. The time now is 17:51.