{"title":"Re: C++ \u306b\u304a\u3051\u308b\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u306e\u91cd\u8981\u6027\u3068\u6d3b\u7528","image_url":null,"url":"https://haru-s.hatenablog.com/entry/20100116/1263607492","height":"190","author_name":"haru-s","width":"100%","blog_title":"...ing logging 4.0","provider_name":"Hatena Blog","description":"\u305d\u308cD\u8a00\u8a9e\u3067\u3067\u304d\u308b\u3088\uff01 \u3063\u3066\u8a00\u3044\u305f\u304b\u3063\u305f\u306e\u3067\u8003\u3048\u3066\u307f\u305f\uff0e \u3088\u308a\u73fe\u5b9f\u7684\u306a\u554f\u984c\u306f\uff0cconst_cast \u3084 mutable \u306e\u3088\u3046\u306a\u4e0d\u7a4f\u306a\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f34\u308f\u305a\uff0c\u304b\u3064\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u5b9f\u969b\u306e\u52d5\u4f5c\u304c\u7570\u306a\u308b\u5834\u5408\u3067\u3059\uff0e #include <iostream> class LargeObj; LargeObj* g_obj; class LargeObj { public: LargeObj() : id_(0) { g_obj = this; } void IAmNotEvil() const { g_obj->id_++; } int id_; }; void g(const LargeObj& obj){ \u2026","author_url":"https://blog.hatena.ne.jp/haru-s/","version":"1.0","blog_url":"https://haru-s.hatenablog.com/","published":"2010-01-16 11:04:52","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20100116%2F1263607492\" title=\"Re: C++ \u306b\u304a\u3051\u308b\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u306e\u91cd\u8981\u6027\u3068\u6d3b\u7528 - ...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>","provider_url":"https://hatena.blog","categories":["D\u8a00\u8a9e","C++"]}