<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtv</author_name>
  <author_url>https://blog.hatena.ne.jp/mtv/</author_url>
  <blog_title></blog_title>
  <blog_url>https://rgba.hatenablog.com/</blog_url>
  <categories>
    <anon>実験してみた</anon>
  </categories>
  <description>ClassA の仮想関数 method() を継承した ClassB でオーバライドした場合でも ClassA のコンストラクタ内の method() は ClassA::method() を指している。これは vptr の初期化タイミングで説明できると思っていたが違った orz（以下、ubuntu 64bit 環境で試しているので vtbl などのポインタは 8 バイト。念のため -O0 でビルドしている） class ClassA { public: ClassA() { method(); } virtual void method() { printf(&quot;ClassA::method(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frgba.hatenablog.com%2Fentry%2F20100703%2Fp1&quot; title=&quot; C++ でオーバーライドした仮想関数をコンストラクタで呼ぶ - &quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-07-03 00:00:00</published>
  <title> C++ でオーバーライドした仮想関数をコンストラクタで呼ぶ</title>
  <type>rich</type>
  <url>https://rgba.hatenablog.com/entry/20100703/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
