<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pknight</author_name>
  <author_url>https://blog.hatena.ne.jp/pknight/</author_url>
  <blog_title>(void*)Pないと</blog_title>
  <blog_url>https://pknight.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>C++TT本</anon>
  </categories>
  <description>C++テンプレートテクニック 9-3 戻り値のみでは通常オーバーロードはできません。 #include &lt;iostream&gt; using std::cout; using std::endl; class CClassA {}; class CClassB {}; CClassA foo() { return CClassA(); } CClassB foo() { return CClassB(); } int main () { CClassA a = foo(); CClassB b = foo(); return 0; } $ cl /W4 /EHsc main.cpp Microso…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpknight.hatenablog.com%2Fentry%2F20100329%2F1269823604&quot; title=&quot;型変換演算子を使って戻り値のオーバーロード風を実現 - (void*)Pないと&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-03-29 09:46:44</published>
  <title>型変換演算子を使って戻り値のオーバーロード風を実現</title>
  <type>rich</type>
  <url>https://pknight.hatenablog.com/entry/20100329/1269823604</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
