<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinya_game_app</author_name>
  <author_url>https://blog.hatena.ne.jp/shinya_game_app/</author_url>
  <blog_title>Flat Leon Works</blog_title>
  <blog_url>https://flat-leon.hatenablog.com/</blog_url>
  <categories>
    <anon>Nim</anon>
  </categories>
  <description>この記事は「Nim Advent Calendar 2021」の16日目の記事として登録させてもらっています。 C++のdynamic_cast C++にはdynamic_castというキャストがあり、これを使うと安全にダウンキャスト*1を行うことができます。 ここでいう「安全」とは、ダウンキャストの失敗を判断できるということです。 #include &lt;stdio.h&gt; class Base { public: virtual ~Base(){} }; class Derived : public Base {}; int main() { Derived* derived = new Der…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fflat-leon.hatenablog.com%2Fentry%2Fnim_dynamic_cast&quot; title=&quot;【Nim 小ネタ】C++のdynamic_cast相当のことを行う - Flat Leon Works&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>2021-12-16 00:10:56</published>
  <title>【Nim 小ネタ】C++のdynamic_cast相当のことを行う</title>
  <type>rich</type>
  <url>https://flat-leon.hatenablog.com/entry/nim_dynamic_cast</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
