<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>programming</anon>
    <anon>C++</anon>
  </categories>
  <description>少し考えてみましたが、これは、やっぱり素直に仮想関数を使うべきですね。もうひとつ基底クラスを設けて、とか dynamic_cast を使って、など考えましたがいずれも RTTI を使用する羽目になるわけで、それなら最初から仮想関数にした方が解りやすい。しかし、これだけならそれでいいのですが、 Generic Visitor を実装したときに、 Concrete Element の各具象クラスを一緒くたに扱いたい時に問題が出てしまうので、何かうまい解法を見つけたいのです。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20051113%2F1131852305&quot; title=&quot;問題が間違っているか…… - 閑古鳥&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>2005-11-13 12:25:05</published>
  <title>問題が間違っているか……</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20051113/1131852305</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
