![](https://s.togetter.com/static/web/img/placeholder.gif)
だったら set_terminate でいいじゃん、という意見もある。 僕も割とそう思う。でもデストラクタが呼ばれないせいで変なことになるかもだしだし。
2010-08-22 04:15:40![](https://s.togetter.com/static/web/img/placeholder.gif)
@SubaruG まあ例外はエラー処理のためのものなので、エラーじゃないケースに例外は使いたくないですよね。dynamic_cast<... *> が NULL を返すのはエラーじゃない場合もありうるので
2010-08-22 04:16:27![](https://s.togetter.com/static/web/img/placeholder.gif)
@AoiMoe ですです。でも、それを差し引いても、 polymorphic_cast が標準ライブラリにないのは怠慢だと思うのです。
2010-08-22 04:18:37![](https://s.togetter.com/static/web/img/placeholder.gif)
というか ISO C++ 98 の仕様書の中を freestanding で検索するとほとんど記述がなくて、あるのは「OSを前提としてないよ」「mainや開始終了処理は実装依存だよ」「ヘッダはこれだけ用意すればいいよ」という三つだけ。言語はフルセット。
2010-08-22 04:24:25![](https://s.togetter.com/static/web/img/placeholder.gif)
魔導書の Egtra センセの記事じゃないけど、 std::unique_ptr -お前を待っていた- って感じ。少なくとも Variadic Templates に劣らない。
2010-08-22 04:26:45![](https://s.togetter.com/static/web/img/placeholder.gif)
まあ ISO C++ に入らなかったのは、さすがに release() がないのはやりすぎ、ということに気づいたんだろう。
2010-08-22 04:30:53![](https://s.togetter.com/static/web/img/placeholder.gif)
うーむ。abi::__cxa_demangleじゃなくてabi::__cxa_mangleは無いのかな。少なくとも手元のGCC 4.2には
2010-08-22 04:32:41![](https://s.togetter.com/static/web/img/placeholder.gif)
VST SDK のクラス設計がウンコなのは何とかならんのか。どれがホストから呼ばれるコールバックで、どれがホストを呼び出すコールバックなのかさっぱり分からん
2010-08-22 05:33:34