2010-12-04から1日間の記事一覧
あの後ちょっと考えたら配置newとか全く不要で,普通に class NoTemp { public: NoTemp(const NoTemp *me) { if (this != me) throw std::logic_error("USAGE: NoTemp nt(&nt);"); } }; で余裕でした.ちなみに(コンパイラとオプションによるが) NoTemp nt…
あの後ちょっと考えたら配置newとか全く不要で,普通に class NoTemp { public: NoTemp(const NoTemp *me) { if (this != me) throw std::logic_error("USAGE: NoTemp nt(&nt);"); } }; で余裕でした.ちなみに(コンパイラとオプションによるが) NoTemp nt…