摘要: auto_ptr、scoped_ptr 与 scoped_array:#include <iostream>#include <boost/scoped_ptr.hpp>#include <boost/scoped_array.hpp>#include <boost/shared_ptr.hpp>#include <boost/make_shared.hpp>class User{ public: User(){} public: int id;};int main(){ std::auto_ptr<int> ap(new 阅读全文
posted @ 2012-10-16 15:32 轻典 阅读(349) 评论(0) 推荐(0) 编辑