- 110 名前:デフォルトの名無しさん mailto:sage [2009/02/17(火) 00:07:42 ]
- shared_ptrだと
boost::scoped_ptr<string> x; boost::scoped_ptr<string> y( new string("foo") ); x = y; scoped_ptrだと x.reset(new string("foo")); と理解しました。 init関数でresetって違和感ありますが、こういうものなのでしょうか。 scoped_ptrを初期化子リストでnewしない場合は 設計を見直した方がいいのかな
|

|