{"published":"2012-07-05 00:00:00","description":"letsboost::shared_ptr #include <iostream> #include <boost/shared_ptr.hpp> using namespace std; class Hoge { public: void echo(){ cout << \"HELLO\" << endl; } virtual ~Hoge(){ cout << \"BYE\" << endl; } typedef boost::shared_ptr<Hoge> Ptr; }; int main() { { Hoge::Ptr a; a = Hoge::Ptr(new Hoge); a->echo()\u2026","author_name":"iww","blog_url":"https://iww.hateblo.jp/","version":"1.0","author_url":"https://blog.hatena.ne.jp/iww/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20120705%2Fshared_ptr\" title=\" shared_ptr - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"categories":["C++"],"url":"https://iww.hateblo.jp/entry/20120705/shared_ptr","provider_url":"https://hatena.blog","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","type":"rich","height":"190","title":" shared_ptr","width":"100%","provider_name":"Hatena Blog"}