{"height":"190","image_url":null,"published":"2012-03-06 00:00:00","blog_title":"yohhoy\u306e\u65e5\u8a18","blog_url":"https://yohhoy.hatenadiary.jp/","provider_name":"Hatena Blog","title":"DECAY_COPY","author_url":"https://blog.hatena.ne.jp/yohhoy/","type":"rich","provider_url":"https://hatena.blog","description":"C++11\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30b9\u30ec\u30c3\u30c9\u30b5\u30dd\u30fc\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u5b9a\u7fa9\u3067\u7528\u3044\u3089\u308c\u308bDECAY_COPY\u95a2\u6570\u306b\u95a2\u3059\u308b\u30e1\u30e2*1\u30022021-10-21\u8ffd\u8a18\uff1aC++2b(C++23)\u306b\u5411\u3051\u305f\u63d0\u6848\u6587\u66f8 P0849R8 \u304c\u63a1\u629e\u3055\u308c\u3001decay-copy\u52d5\u4f5c\u3092\u884c\u3046\u660e\u793a\u578b\u5909\u63db(explicit type conversion)\u5f0fauto(t), auto{t}\u304c\u8a00\u8a9e\u4ed5\u69d8\u306b\u8ffd\u52a0\u3055\u308c\u308b\u3002\u5927\u96d1\u628a\u306b\u3001DECAY_COPY(t)\u306e\u7d50\u679c\u306fauto x = t;\u3068\u4ee3\u5165\u3057\u305f\u5909\u6570x\u306b\u76f8\u5f53\u3059\u308b*2\u3002 t\u304c\u578bT\u306ervalue\u306e\u5834\u5408\u306fx\u306f\u30e0\u30fc\u30d6\u3055\u308c\u305f\u578bT\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3002\u305d\u308c\u4ee5\u5916\u306a\u3089x\u306f\u30b3\u30d4\u30fc\u3055\u308c\u305f\u578bT\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u306a\u308b\u3002 t\u304c\u914d\u5217\u578b\u306e\u5834\u5408\u3001x\u306f\u5148\u982d\u2026","version":"1.0","width":"100%","url":"https://yohhoy.hatenadiary.jp/entry/20120306/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20120306%2Fp1\" title=\"DECAY_COPY - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C++"],"author_name":"yohhoy"}