{"title":" C++","author_url":"https://blog.hatena.ne.jp/nevil/","categories":["Programming"],"blog_title":"nevil diary","width":"100%","published":"2005-04-17 00:00:00","author_name":"nevil","provider_url":"https://hatena.blog","height":"190","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnevil.hatenadiary.org%2Fentry%2F20050417%2Fp1\" title=\" C++ - nevil diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://nevil.hatenadiary.org/","type":"rich","description":"\u3075\u304f\u3057\u3085\u3046\u3002 http://exe.adam.ne.jp/j/tmfd.html \u304b\u3089\u3002 template <int x> struct Square { enum { value = x * x}; }; int main() { std::cout << Square::<16>::value << std::endl; }\u3053\u306e\u30b3\u30fc\u30c9\u3060\u3068\u5b9f\u884c\u6642\u306b\u8a08\u7b97\u304c\u884c\u308f\u308c\u305a\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u8a08\u7b97\u3055\u308c\u308b\u3002\u30de\u30af\u30ed\u3060\u3068\u601d\u3048\u3070\u826f\u3044\u3002\u3053\u308c\u3092\u300c\u5b9a\u6570\u306e\u7573\u307f\u8fbc\u307f\u300d\u3068\u3044\u3046\u3089\u3057\u3044\u3002\u6b21\u3001\u300c\u30eb\u30fc\u30d7\u5c55\u958b\u300d\u3002\u304a\u984c\u306f\u30d3\u30c3\u30c8\u30d5\u30e9\u30b0\u3002\u9806\u306b #define BIT_ONE 0x0001 #define BIT_TWO 0x0002 #def\u2026","url":"https://nevil.hatenadiary.org/entry/20050417/p1","image_url":null,"version":"1.0"}