reinterpret_cast

Cスタイルキャストが有用な場面

mozilla/xpcom/reflect/xptinfo/public/xptinfo.h:215-218 → Bugzilla@Mozilla – Bug 49641 を見ていてなるほどと思ったのでメモ。このあたり仕様に詳しくはないけど、かつては incomplete タイプへの reinterpret_cast を許さないコンパイラというのがあっ…