{"categories":["C++","C++11","Boost","Boost.Preprocessor"],"blog_url":"https://blog.cryolite.net/","image_url":null,"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/Cryolite/","url":"https://blog.cryolite.net/entry/20110920/p1","width":"100%","description":"\u51fa\u529b\u304c\u3061\u3087\u3063\u3068\u3060\u3051\u30db\u30e2\u30fb\u30b5\u30d4\u30a8\u30f3\u30b9\u306b\u512a\u3057\u3044 scoped enumeration \u3092\u5b9a\u7fa9\u3059\u308b\u3060\u3051\u306e\u30ab\u30f3\u30bf\u30f3\u306a\u30de\u30af\u30ed\u3092\u4f5c\u3063\u305f\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\uff0e GCC 4.6.1 -std=c++0x \u3067\u52d5\u3044\u305f\u3088\u3046\u306a\u6c17\u3082\u3059\u308b\uff0e #include <iostream> // \u7b2c1\u5f15\u6570\u306b enumeration \u306e identifier (enum-name) \u3092 // \u7b2c2\u5f15\u6570\u4ee5\u4e0b\u306b enumerator-definition \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\uff0e // \u6307\u5b9a\u3067\u304d\u308b enumerator-definition \u306f\u53ef\u5909\u9577\u3067\u6700\u5927255\u500b\uff08\u306e\u306f\u305a\uff09\uff0e CRYOLITE_DECL_ENUM(Color, red, yellow\u2026","title":"Defining Scoped Enumerations with Human-readable Outputs","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.cryolite.net%2Fentry%2F20110920%2Fp1\" title=\"Defining Scoped Enumerations with Human-readable Outputs - Cry&#39;s Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","author_name":"Cryolite","blog_title":"Cry's Blog","published":"2011-09-20 00:00:00"}