std::auto_ptr​ is still available, but it is deprecated under C++11.

6 views
Skip to first unread message

Songbo Du

unread,
Dec 2, 2011, 11:07:31 PM12/2/11
to bbtco...@googlegroups.com
Hi All,

Teacher Zhao just talked about auto_ptr. Here I am gonna to share a little bit more.



--
Best Regards,
Du, Songbo

tonyguo2010

unread,
Dec 2, 2011, 11:35:30 PM12/2/11
to bbtcollege
这充分说明STL的一大罪状,写多了STL,手会烂的。。。
 
 
2011-12-03

tonyguo2010

发件人: Songbo Du
发送时间: 2011-12-03  12:07:57
收件人: bbtcollege
抄送:
主题: std::auto_ptr​_is_still_available,_but_it_is_deprecated_under_C++11.

Daniel wu

unread,
Dec 3, 2011, 12:05:29 AM12/3/11
to bbtco...@googlegroups.com
Thanks.

Actually, auto_ptr is suggested to be replace with shared_ptr in the the book, effective c++.

Songbo Du

unread,
Dec 3, 2011, 12:37:24 AM12/3/11
to bbtco...@googlegroups.com
Yes, you are right. Here, it is pointed out clearly. It adds unique_ptr, shared_ptr and weak_ptr.

Peisheng YE

unread,
Dec 4, 2011, 10:57:03 PM12/4/11
to bbtco...@googlegroups.com

我晕。
看不懂,讨论这个都是高手。
Reply all
Reply to author
Forward
0 new messages