{"provider_name":"Hatena Blog","author_name":"thinca","height":"190","blog_url":"https://thinca.hatenablog.com/","description":"\u3053\u3053\u306b\u4f55\u306e\u5909\u54f2\u3082\u306a\u3044 union \u304c\u3042\u3063\u305f\u3068\u3059\u308b\u3002 union point { struct { short x; short y; }; int hash; }; int \u306e\u30b5\u30a4\u30ba\u3068\u304b\u306f\u4eca\u56de\u306f\u7f6e\u3044\u3068\u3044\u3066\u3001\u3053\u308c\u3092 immutable \u306b\u3057\u305f\u3044\u3002const \u4ed8\u3051\u308b\u3002 union point { struct { const short x; const short y; }; const int hash; }; point p; point.cpp:8:7: error: structure \u2018p\u2019 with uninitialized const members\u307e\u3042\u5f53\u7136\u3067\u3059\u306a\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u2026","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinca.hatenablog.com%2Fentry%2F20120414%2F1334338774\" title=\" union \u306e const \u30e1\u30f3\u30d0 - \u6c38\u9060\u306b\u672a\u5b8c\u6210\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://thinca.hatenablog.com/entry/20120414/1334338774","title":" union \u306e const \u30e1\u30f3\u30d0","version":"1.0","blog_title":"\u6c38\u9060\u306b\u672a\u5b8c\u6210","categories":["c++","trap"],"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/thinca/","type":"rich","image_url":"http://a0.twimg.com/profile_images/2009876367/61VGoBw9BTL_normal.jpg","published":"2012-04-14 02:39:34"}