C++11/C++1y 15
■ このスレッドは過去ログ倉庫に格納されています
0716デフォルトの名無しさん
2012/08/08(水) 07:37:15.99template<class Y, class D> shared_ptr(Y* p, D d);
8. ...The copy constructor and destructor of D shall not throw exceptions.
The expression d(p) shall be well formed, shall have well defined behavior,
and shall not throw exceptions.
なので、例外投げる削除子を shared_ptr に使ってはいけない。
■ このスレッドは過去ログ倉庫に格納されています