「More C++ Idioms/多態的例外(Polymorphic Exception)」の版間の差分

削除された内容 追加された内容
編集の要約なし
95 行
 
* Simply use ''throw;'' (without any expression following it). It will rethrow the original exception object.
* Use polymorphic exception idiom again. It will throw a copy of the original exception object because the ''raise()'' virtual function uses ''throw *this''.
 
 
<source lang="cpp">