<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>前回の続きです =演算子で、引数の型が関数ポインタか関数オブジェクトかを判別して処理を分けるにはどうすればいいだろうか ここで使われているのがタグディスパッチという手法であるタグディスパッチのくわしい解説はここで行っているので参照してもらいたい(くわしくはないかも) まず、関数ポインタ・関数オブジェクトそれぞれのタグを定義する struct function_ptr_tag {}; struct function_obj_tag {}; 次に指定された型が関数ポインタか関数オブジェクトか判別するメタ関数を定義する #include &lt;boost/type_traits.hpp&gt; #includ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080221%2F1203593091&quot; title=&quot; Boost.Functionの実装技術(2) - タグディスパッチ - Faith and Brave - 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>2008-02-21 20:24:51</published>
  <title> Boost.Functionの実装技術(2) - タグディスパッチ</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20080221/1203593091</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
