{"width":"100%","title":"const \u53c2\u7167\u30a8\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3","categories":["C++"],"description":"const \u53c2\u7167\u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u30af\u30e9\u30b9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u5b9f\u88c5\u53ef\u80fd\u304b\uff1f\u3064\u307e\u308a\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30af\u30e9\u30b9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 template<class T> class const_reference { ????? };\u304c\u3042\u3063\u305f\u3068\u3057\u3066\uff0c int i; double d; const_reference<int> rci1(i); // i \u3078\u306e const \u53c2\u7167\u3068\u3057\u3066\u632f\u821e\u3046 const_reference<int> rci2(1); // \u4e00\u6642\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e 1 \u306f rci \u306e\u5bff\u547d\u307e\u3067\u5ef6\u547d\u3055\u308c\u308b const_reference<double> rcd1(d); // int -> double \u3078\u306e\u5909\u63db\u5f8c\uff0c\u5909\u2026","provider_name":"Hatena Blog","image_url":null,"type":"rich","author_url":"https://blog.hatena.ne.jp/Cryolite/","provider_url":"https://hatena.blog","version":"1.0","blog_url":"https://blog.cryolite.net/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.cryolite.net%2Fentry%2F20051020%2Fp1\" title=\"const \u53c2\u7167\u30a8\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3 - 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>","blog_title":"Cry's Blog","author_name":"Cryolite","height":"190","url":"https://blog.cryolite.net/entry/20051020/p1","published":"2005-10-20 00:00:00"}