{"height":"190","blog_url":"https://faithandbrave.hateblo.jp/","author_name":"faith_and_brave","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20070831%2F1188558276\" title=\" compile-time-polymorphism(\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u591a\u614b) - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","provider_url":"https://hatena.blog","type":"rich","published":"2007-08-31 20:04:36","url":"https://faithandbrave.hateblo.jp/entry/20070831/1188558276","title":" compile-time-polymorphism(\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u591a\u614b)","width":"100%","categories":["C++"],"version":"1.0","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","description":"\u6771\u65b9\u7b97\u7a0b\u8b5a - \u30a2\u30d2\u30eb\u306e\u5224\u5225 \u3059\u3070\u3089\u3057\u3044\u3068\u3057\u304b\u8a00\u3044\u3088\u3046\u304c\u306a\u3044\u3057\u3073\u308c\u308b\u306a\u301c \u3055\u3059\u304c\u306fC++ #include <iostream> #include <string> using namespace std; // \u30ab\u30c6\u30b4\u30ea struct cpp_category {}; struct java_category {}; // C++\u30d7\u30ed\u30b0\u30e9\u30de struct cpp_programmer { typedef cpp_category category; string language() const { return \"C++ : \"; } }; // Java\u30d7\u30ed\u30b0\u30e9\u30de struct java\u2026","image_url":null}