摘要:
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 阅读全文