2009-04-17から1日間の記事一覧
Javaからの類推で、キャストの失敗は例外が飛ぶのかなーと思っていたんですが、ポインタのdynamic_cast失敗はNULLが返ってくるだけでした。MSDNリファレンス The value of a failed cast to pointer type is the null pointer. A failed cast to reference t…
Javaからの類推で、キャストの失敗は例外が飛ぶのかなーと思っていたんですが、ポインタのdynamic_cast失敗はNULLが返ってくるだけでした。MSDNリファレンス The value of a failed cast to pointer type is the null pointer. A failed cast to reference t…