<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>C#</anon>
  </categories>
  <description>普段C#を使っていて、C++を使った時に例外を使用した時に感じた違いを書いていきたいと思います。 まずは、言語使用上、違う部分から行きたいと思います。（ちなみに動作をVS2017のVC++で確認してるので規格と違うことがあるかもしれません。 その1：C++の例外は必ずしも特定の基底クラスを持たない C#は例外は全てSystem.Exceptionをを継承していないといけないという言語上のルールがありましたが、C++にはそういった決まりはありません。throwで投げられる例外の型は任意の型を自由にthrow出来ます。 // 以下の書き方は全部OK throw 1; // → catch (int…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2017%2F11%2F27%2F224502&quot; title=&quot;C#から見たC++の例外処理仕様の違い - PG日誌&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>2017-11-27 22:45:02</published>
  <title>C#から見たC++の例外処理仕様の違い</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2017/11/27/224502</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
