{"blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","description":"#include <string> #include <iostream> using namespace std; class Hoge { public: virtual string to_str(){ return \"hoge\"; } }; class Piyo : public Hoge { public: virtual string to_str(){ return \"piyo\"; } }; Hoge *getp() { return new Piyo(); } Hoge get() { Piyo a; return a; } int main() { Hoge *p = get\u2026","version":"1.0","author_name":"iww","published":"2012-07-03 00:00:00","type":"rich","blog_url":"https://iww.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20120703%2Fcpp\" title=\"\u5b9f\u4f53\u3092\u307e\u308b\u3054\u3068\u8fd4\u3059\u3068\u30ad\u30e3\u30b9\u30c8\u3055\u308c\u308b - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","width":"100%","title":"\u5b9f\u4f53\u3092\u307e\u308b\u3054\u3068\u8fd4\u3059\u3068\u30ad\u30e3\u30b9\u30c8\u3055\u308c\u308b","author_url":"https://blog.hatena.ne.jp/iww/","height":"190","image_url":null,"url":"https://iww.hateblo.jp/entry/20120703/cpp","categories":["C++"],"provider_url":"https://hatena.blog"}