<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>asakawajunya</author_name>
  <author_url>https://blog.hatena.ne.jp/asakawajunya/</author_url>
  <blog_title>asakawajunyaのブログ</blog_title>
  <blog_url>https://asakawajunya.hatenablog.com/</blog_url>
  <categories>
    <anon>c++</anon>
    <anon>tips</anon>
  </categories>
  <description>きっと知っている人にとっては当たり前なんでしょうが、ハマッたので備忘録として。 サンプルコード（コンパイルエラー版） #include &lt;iostream&gt; using namespace std; struct Hoge { int i; }; Hoge get_hoge(int i) { switch(i) { case 1: // { Hoge hoge = {1}; return hoge; // } default: // { Hoge hoge = {2}; return hoge; // } } } int main(int argc, char **argv) { Hoge h…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fasakawajunya.hatenablog.com%2Fentry%2F20110804%2F1312408954&quot; title=&quot; C++のswitch文でオブジェクトを生成しようとするとエラーになる - asakawajunyaのブログ&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>2011-08-04 07:02:34</published>
  <title> C++のswitch文でオブジェクトを生成しようとするとエラーになる</title>
  <type>rich</type>
  <url>https://asakawajunya.hatenablog.com/entry/20110804/1312408954</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
