{"version":"1.0","author_url":"https://blog.hatena.ne.jp/iww/","url":"https://iww.hateblo.jp/entry/20120911/shared_ptr","image_url":null,"categories":["C++"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20120911%2Fshared_ptr\" title=\"shared_ptr\u3092\u8fd4\u3059 - \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>","type":"rich","provider_url":"https://hatena.blog","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","height":"190","width":"100%","provider_name":"Hatena Blog","title":"shared_ptr\u3092\u8fd4\u3059","description":"http://d.hatena.ne.jp/iww/20120705/shared_ptr \u304b\u3089\u6539\u9020\u3057\u3066\u307f\u308b #include <iostream> #include <boost/shared_ptr.hpp> using namespace std; using namespace boost; class Hoge { private: Hoge(){} public: void echo(){ cout << \"HELLO\" << endl; } virtual ~Hoge(){ cout << \"BYE\" << endl; } static shared_ptr<Hoge> crea\u2026","published":"2012-09-11 00:00:00","author_name":"iww","blog_url":"https://iww.hateblo.jp/"}