<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thinca</author_name>
  <author_url>https://blog.hatena.ne.jp/thinca/</author_url>
  <blog_title>永遠に未完成</blog_title>
  <blog_url>https://thinca.hatenablog.com/</blog_url>
  <categories>
    <anon>c++</anon>
    <anon>trap</anon>
  </categories>
  <description>ここに何の変哲もない union があったとする。 union point { struct { short x; short y; }; int hash; }; int のサイズとかは今回は置いといて、これを immutable にしたい。const 付ける。 union point { struct { const short x; const short y; }; const int hash; }; point p; point.cpp:8:7: error: structure ‘p’ with uninitialized const membersまあ当然ですな。コンストラクタ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinca.hatenablog.com%2Fentry%2F20120414%2F1334338774&quot; title=&quot; union の const メンバ - 永遠に未完成&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>http://a0.twimg.com/profile_images/2009876367/61VGoBw9BTL_normal.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-14 02:39:34</published>
  <title> union の const メンバ</title>
  <type>rich</type>
  <url>https://thinca.hatenablog.com/entry/20120414/1334338774</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
