{"title":"\u30aa\u30da\u30e9\u30f3\u30c9\u6307\u5b9a\u7121\u3057throw\u5f0f","height":"190","author_url":"https://blog.hatena.ne.jp/yohhoy/","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC++\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u6307\u5b9a\u7121\u3057throw\u5f0f\u306e\u632f\u308b\u821e\u3044\u306b\u3064\u3044\u3066\u30e1\u30e2\u3002 #include <iostream> void do_rethrow() { // \u30aa\u30da\u30e9\u30f3\u30c9\u306a\u3057throw\u5f0f throw; } int main() { try { try { throw 42; } catch (...) { // int\u578b\u306e\u502442\u3092\u518dthrow\u3059\u308b do_rethrow(); } } catch (int x) { std::cout << x << std::endl; } // std::terminate()\u306b\u3088\u308a\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u7d42\u4e86 do_rethrow(); } C++03 15.\u2026","blog_url":"https://yohhoy.hatenadiary.jp/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20140815%2Fp1\" title=\"\u30aa\u30da\u30e9\u30f3\u30c9\u6307\u5b9a\u7121\u3057throw\u5f0f - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","url":"https://yohhoy.hatenadiary.jp/entry/20140815/p1","categories":["C++"],"image_url":null,"published":"2014-08-15 00:00:00","author_name":"yohhoy","blog_title":"yohhoy\u306e\u65e5\u8a18","type":"rich","provider_url":"https://hatena.blog","provider_name":"Hatena Blog"}