<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>higepon</author_name>
  <author_url>https://blog.hatena.ne.jp/higepon/</author_url>
  <blog_title>higepon blog</blog_title>
  <blog_url>https://higepon.hatenablog.com/</blog_url>
  <categories>
    <anon>mosh</anon>
  </categories>
  <description>C++ のメンバ関数は関数ポインタをとる事は出来てもアドレスは無理。とはいえ JIT で必要なので以下の方法でとる事に。 実体は this が第一引数のマングリングされた関数だから呼べるのは当たり前だけど合法かが微妙。 const Object t = Object::makeFixnum(1234); fixedint (Object::*func1)() const = &amp;Object::toFixnum; // メンバ関数ポインタによる呼び出し printf(&quot;func1=%d\n&quot;, (t.*func1)()); // 無理矢理 void** p = reinterpret_cast&lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigepon.hatenablog.com%2Fentry%2F20090927%2F1254062432&quot; title=&quot; C++ メンバ関数のポインタをアドレスとして取得 - higepon blog&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>2009-09-27 23:40:32</published>
  <title> C++ メンバ関数のポインタをアドレスとして取得</title>
  <type>rich</type>
  <url>https://higepon.hatenablog.com/entry/20090927/1254062432</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
