{"published":"2010-01-31 18:55:21","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20100131%2F1264931721\" title=\"@disable - dmd2.040 - ...ing logging 4.0\" 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%","description":"Add @disable attribute import std.stdio; struct A { @disable this(this) {} // \u30b3\u30d4\u30fc\u7981\u6b62 } void main() { A a, b; a = b; // error } C++\u3067\u306f\u30b3\u30d4\u30fc\u7981\u6b62\u306b\u3059\u308b\u305f\u3081\u306b\u30b3\u30d4\u30fc\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3084operator=\u3092private\u30e1\u30f3\u30d0\u306b\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3057\u305f\u304c\uff0cD\u8a00\u8a9e\u3067\u306f\u540c\u4e00\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30af\u30e9\u30b9\u9593\u306ffriend\u95a2\u4fc2\u306a\u306e\u3067\uff0c\u305d\u306e\u65b9\u6cd5\u306f\u4f7f\u3048\u307e\u305b\u3093\u3067\u3057\u305f\uff0e @disable\u3092\u4f7f\u3046\u3068\u305d\u308c\u304c\u3067\u304d\u307e\u3059\uff0e c++1x\u306e =delete \u307f\u305f\u3044\u306a\u3082\u306e\u3067\u3059\u306d\uff0e","categories":["D\u8a00\u8a9e"],"blog_title":"...ing logging 4.0","author_url":"https://blog.hatena.ne.jp/haru-s/","image_url":null,"blog_url":"https://haru-s.hatenablog.com/","provider_name":"Hatena Blog","author_name":"haru-s","url":"https://haru-s.hatenablog.com/entry/20100131/1264931721","version":"1.0","provider_url":"https://hatena.blog","height":"190","title":"@disable - dmd2.040","type":"rich"}