{"author_name":"yohhoy","description":"C++1z(C++17)\u3067\u8ffd\u52a0\u3055\u308c\u308b fallthrough\u5c5e\u6027 \u306e\u5229\u7528\u306b\u95a2\u3059\u308b\u6ce8\u610f\u70b9\u306b\u3064\u3044\u3066\u3002\u4e0b\u8a18\u30b3\u30fc\u30c9\u306e\u2605\u90e8\u3067\u306f\u30d5\u30a9\u30fc\u30eb\u30b9\u30eb\u30fc(fallthrough)\u660e\u793a\u3092\u610f\u56f3\u3057\u3066\u3044\u308b\u304c\u3001C++\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u671f\u5f85\u901a\u308a\u632f\u821e\u308f\u306a\u3044\u3002\u3053\u308c\u306f\u672b\u5c3e\u30bb\u30df\u30b3\u30ed\u30f3(;)\u3092\u5fd8\u308c\u305f\u3053\u3068\u3067\u3001fallthrough\u5c5e\u6027\u304c\u6b63\u3057\u3044\u4f4d\u7f6e\u3067\u89e3\u91c8\u3055\u308c\u306a\u3044\u3053\u3068\u306b\u3088\u308b\u3002 // C++1z(C++17)\u4ee5\u964d int n = /*...*/; switch (n) { case 0: /* do something #0 */ [[fallthrugh]] // \u2605 NG case 1: /* do something #1 */ b\u2026","title":"fallthrough\u5c5e\u6027\u5229\u7528\u6642\u306e\u3061\u3087\u3063\u3068\u3057\u305f\u6ce8\u610f\u70b9","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20170726%2Fp1\" title=\"fallthrough\u5c5e\u6027\u5229\u7528\u6642\u306e\u3061\u3087\u3063\u3068\u3057\u305f\u6ce8\u610f\u70b9 - 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>","type":"rich","version":"1.0","blog_url":"https://yohhoy.hatenadiary.jp/","published":"2017-07-26 00:00:00","provider_name":"Hatena Blog","categories":["C++","C++1z","gcc","Clang","MSVC"],"height":"190","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/yohhoy/","width":"100%","blog_title":"yohhoy\u306e\u65e5\u8a18","url":"https://yohhoy.hatenadiary.jp/entry/20170726/p1","image_url":null}