{"width":"100%","author_url":"https://blog.hatena.ne.jp/wata_d/","type":"rich","height":"190","published":"2006-03-07 23:57:37","title":"boost::shared_ptr \u304c\u7d20\u6575\u306a\u4ef6 (2)","provider_url":"https://hatena.blog","image_url":null,"url":"https://www.little-cuckoo.jp/entry/20060307/1141743457","description":"\u3053\u3046\u304b\u3002 #include <iostream> #include <algorithm> #include <vector> #include <boost/shared_ptr.hpp> #include <boost/bind.hpp> using namespace std; struct base { virtual void print() = 0; }; struct hoge : public base { virtual void print() { cout << \"hoge\" << endl; } }; struct hige : public base { virtua\u2026","blog_url":"https://www.little-cuckoo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20060307%2F1141743457\" title=\"boost::shared_ptr \u304c\u7d20\u6575\u306a\u4ef6 (2) - \u9591\u53e4\u9ce5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C++","programming","boost"],"version":"1.0","blog_title":"\u9591\u53e4\u9ce5","author_name":"wata_d","provider_name":"Hatena Blog"}