<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>union のメンバに対する制限が(とくに制限する理由もなかったので)解除され、参照以外の全ての型を持つことができるようになる union U { int i; float f; std::string s; // 今まではできなかった }; 今まではこの制限のためにテンプレートやキャストを使っていたが今回の変更で union がより強力でより便利になる 注意事項 ・参照型をメンバにすることはできない ・静的メンバを持つことができる ・メンバ関数を持つことはできるが、仮想関数を持つことはできない ・基本クラスを持ってはならない ・基本クラスとして使用されてはならない ・ある共用体のメンバ、もし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080710%2F1215680554&quot; title=&quot; C++0x 無制限Union - Faith and Brave - C++で遊ぼう&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>2008-07-10 18:02:34</published>
  <title> C++0x 無制限Union</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20080710/1215680554</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
