2012-09-11から1日間の記事一覧
http://d.hatena.ne.jp/iww/20120705/shared_ptr から改造してみる #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" <<</boost/shared_ptr.hpp></iostream>…