{"version":"1.0","blog_title":"memologue","title":"\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7279\u6b8a\u5316\u306b\u3064\u3044\u3066","provider_name":"Hatena Blog","published":"2007-10-08 00:00:01","type":"rich","description":"\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7279\u6b8a\u5316\u3044\u308d\u3044\u308d \u306a\u3093\u304b\u65e5\u8a18\u3092\u66f8\u304f\u306e\u3092\u5fd8\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u3088\u304f\u306a\u3044\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u6700\u8fd1\u304a\u307c\u3048\u305ftips\u3092\u66f8\u304d\u307e\u3059\u3002\u30af\u30e9\u30b9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5185\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7279\u6b8a\u5316\uff08\u3082\u3069\u304d\uff09\u306b\u3064\u3044\u3066\u306e\u81ea\u5206\u306a\u308a\u306e\u307e\u3068\u3081\u3002 \u307e\u305a\u3001 namespace A { template<int V> static void YYY() { std::printf(\"default %d\\n\", V); } } int main() { YYY<0>(); YYY<128>(); } \u306e\u3088\u3046\u306a\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u3042\u308b\u3068\u304d\u3001\u3053\u308c\u3092\u7279\u6b8a\u5316*1\u3057\u305f\u95a2\u6570\u306f namespace A { template<int V> static \u2026","author_url":"https://blog.hatena.ne.jp/yupo5656/","blog_url":"https://yupo5656.hatenadiary.org/","url":"https://yupo5656.hatenadiary.org/entry/20071008/p2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyupo5656.hatenadiary.org%2Fentry%2F20071008%2Fp2\" title=\"\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7279\u6b8a\u5316\u306b\u3064\u3044\u3066 - memologue\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","image_url":null,"provider_url":"https://hatena.blog","height":"190","categories":["C++"],"author_name":"yupo5656"}