{"blog_title":"melpon\u65e5\u8a18 - Haskell\u3082C++\u3082\u307e\u3068\u3082\u306b\u6271\u3048\u306a\u3044\u3078\u305f\u308c\u306e\u30da\u30fc\u30b8","image_url":null,"description":"\u3042\u3068\u306f\u3001\u5185\u90e8\u306e\u30c7\u30fc\u30bf\u30af\u30e9\u30b9\u306f\u516c\u958b\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u306e\u3067\u5185\u90e8\u30af\u30e9\u30b9\u306b\u5165\u308c\u3066 protected \u306b\u3057\u3066\u3001\u30dd\u30a4\u30f3\u30bf\u306f\u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf\u306b\u5909\u3048\u3066\u3084\u308b\u3002 class Hoge{ protected: class Data{ public: virtual void foo(){} virtual void bar(){} }; private: Data* get(){ return (Data*)_obj.get(); } smart_ptr< Data > _obj; public: void foo(){ return get()->foo(); } void bar(){ return get()-\u2026","provider_name":"Hatena Blog","version":"1.0","author_name":"melpon","title":"\u8a2d\u8a08(4)","categories":["program","C++","LunaCat"],"width":"100%","height":"190","blog_url":"https://melpon.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/melpon/","published":"2006-03-06 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmelpon.hatenadiary.org%2Fentry%2F20060306%2Fp1\" title=\"\u8a2d\u8a08(4) - melpon\u65e5\u8a18 - Haskell\u3082C++\u3082\u307e\u3068\u3082\u306b\u6271\u3048\u306a\u3044\u3078\u305f\u308c\u306e\u30da\u30fc\u30b8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://melpon.hatenadiary.org/entry/20060306/p1","type":"rich","provider_url":"https://hatena.blog"}