{"blog_title":"...ing logging 4.0","height":"190","width":"100%","author_url":"https://blog.hatena.ne.jp/haru-s/","author_name":"haru-s","published":"2007-12-03 00:17:34","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20071203%2F1196695054\" title=\" const/invariant member function (2) - ...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>","image_url":null,"title":" const/invariant member function (2)","description":"\u524d\u306bconst\u30e1\u30f3\u30d0\u95a2\u6570\u5468\u308a\u306e\u6319\u52d5\u3092\u8abf\u3079\u305f\u3053\u3068\u304c\u3042\u308b\u306e\u3060\u3051\u3069\uff0c\u4e01\u5ea6\u4eca2ch\u306e\u30b9\u30ec\u304c\u76db\u308a\u4e0a\u304c\u3063\u3066\u308b\u307f\u305f\u3044\u306a\u306e\u3067\u6539\u3081\u3066\u8abf\u67fb\uff0e \u307e\u305a\uff0cD\u8a00\u8a9e 2.0 \u3067\u306e\u30e1\u30f3\u30d0\u95a2\u6570\u306e const int func(); \u306f\uff0cC++ \u306e const \u30e1\u30f3\u30d0\u95a2\u6570\u306b\u306a\u308b\uff0e C++ \u306e\u30b3\u30fc\u30c9\u3067\u8a00\u3046\u3068\u3053\u308c\uff1b class A { int func() const; }; \u3064\u307e\u308a\uff0c const \u3092\u4ed8\u3051\u308b\u4f4d\u7f6e\u304c\u524d\u3068\u5f8c\u308d\u3068\u3044\u3046\u9055\u3044\u304c\u3042\u308b\uff0e \u305d\u308c\u3092\u8e0f\u307e\u3048\u3066\uff0c\u6b21\u306eD\u8a00\u8a9e 2.0 \u306e\u30b3\u30fc\u30c9\u3092\u8a66\u3059\uff1b import std.stdio; class A { const int s; const(int) t; const const(int)\u2026","type":"rich","url":"https://haru-s.hatenablog.com/entry/20071203/1196695054","categories":["D\u8a00\u8a9e"],"version":"1.0","provider_url":"https://hatena.blog","blog_url":"https://haru-s.hatenablog.com/","provider_name":"Hatena Blog"}