2012年3月5日

摘要: shared_ptr enable_shared_from_this一种避免内存泄漏的方式是, always use a named smart pointer variable to hold the result of newshared_ptr<T> p(new T);http://hi.baidu.com/jrckkyy/blog/item/ac3e5511fa4a59caa6ef3ff1.html 这篇文章讲了shared_from_this几个值得注意的地方, 看了几次,然后去翻阅了下源码,搞明白了boost文档中首先讲了enable_shared_from_this的 阅读全文
posted @ 2012-03-05 11:20 小宇2 阅读(6242) 评论(0) 推荐(1) 编辑

导航