{"published":"2008-01-24 23:31:02","image_url":null,"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fisoparametric.hatenablog.com%2Fentry%2F20080124%2F1201185062\" title=\"\u3082\u3057\u304b\u3057\u3066C\u306e\u5974\u3089\u306f\u4ee3\u5165\u3084\u30ad\u30e3\u30b9\u30c8\u3067\u30dd\u30a4\u30f3\u30bf\u306e\u30a2\u30c9\u30ec\u30b9\u304c\u5909\u308f\u3089\u306a\u3044\u3068\u304b\u601d\u3063\u3066\u3044\u308b\u306e\u304b\uff1f - \u795e\u69d8\u306a\u3093\u3066\u4fe1\u3058\u306a\u3044\u50d5\u3089\u306e\u305f\u3081\u306b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","description":"class A { public: A (){} virtual ~A (){} }; class B { public: B (){}; virtual ~B (){}; }; class C : public A, public B { public: C (){} virtual ~C (){} }; int main() { C* c = new C(); A* a = c; B* b = c; printf(\"c:%p\\n\", c); printf(\"b:%p\\n\", b); printf(\"a:%p\\n\", a); delete c; return 0; } a,b,c\u304c\u5168\u3066\u540c\u3058\u30a2\u2026","blog_title":"\u795e\u69d8\u306a\u3093\u3066\u4fe1\u3058\u306a\u3044\u50d5\u3089\u306e\u305f\u3081\u306b","height":"190","categories":["C/C++"],"blog_url":"https://isoparametric.hatenablog.com/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/Isoparametric/","version":"1.0","title":"\u3082\u3057\u304b\u3057\u3066C\u306e\u5974\u3089\u306f\u4ee3\u5165\u3084\u30ad\u30e3\u30b9\u30c8\u3067\u30dd\u30a4\u30f3\u30bf\u306e\u30a2\u30c9\u30ec\u30b9\u304c\u5909\u308f\u3089\u306a\u3044\u3068\u304b\u601d\u3063\u3066\u3044\u308b\u306e\u304b\uff1f","url":"https://isoparametric.hatenablog.com/entry/20080124/1201185062","author_name":"Isoparametric"}