<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nobu-q</author_name>
  <author_url>https://blog.hatena.ne.jp/nobu-q/</author_url>
  <blog_title>nobu-qの日記</blog_title>
  <blog_url>https://nobu-q.hatenadiary.org/</blog_url>
  <categories>
    <anon>prog</anon>
    <anon>memo</anon>
  </categories>
  <description>メンバ関数ポインタはいろんな事情でvoid*に変換できないので、 boost::any fun = &amp;Class::function; ... (hoge.*boost::any_cast&lt;省略&gt;(fun))(ｒｙ);みたいな事をしたいけどあんまり負荷が大きいことをしたくない。メンバ関数ポインタが8バイトの時は unsigned long long memfun2value(メンバ関数ポインタ fun) { struct Hoge { メンバ関数ポインタ f; }; Hoge h; h.f = fun; return *(unsigned long long*)(&amp;h); } メンバ関数ポイン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnobu-q.hatenadiary.org%2Fentry%2F20080615%2F1213517400&quot; title=&quot; メンバ関数ポインタを数値として扱ってみる(非推奨 - nobu-qの日記&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>2008-06-15 17:10:00</published>
  <title> メンバ関数ポインタを数値として扱ってみる(非推奨</title>
  <type>rich</type>
  <url>https://nobu-q.hatenadiary.org/entry/20080615/1213517400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
