{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20111217%2F1324095598\" title=\"clang \u3067 Uniform initialization - C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2011-12-17 13:19:58","description":"\u3042\u308a\u3083\u3001clang \u3067\u3082 Uniform initialization \u4f7f\u3048\u305f\u3093\u3067\u3059\u306d\u3002 \u77e5\u3089\u306a\u304b\u3063\u305f\u2026\u3002 [\u30bd\u30fc\u30b9] #include <string> #include <cassert> struct X{ int n; std::string str; }; X func(){ return {0, \"homu\"}; } int main(){ X x{0, \"homu\"}; auto x2 = func(); assert(x.n == 0); assert(x.str == \"homu\"); assert(x2.n == 0); assert(x2.str == \"homu\"); \u2026","width":"100%","provider_name":"Hatena Blog","image_url":null,"blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","title":"clang \u3067 Uniform initialization","categories":["C++","clang"],"version":"1.0","height":"190","provider_url":"https://hatena.blog","blog_url":"https://osyo-manga.hatenadiary.org/","author_name":"osyo-manga","author_url":"https://blog.hatena.ne.jp/osyo-manga/","type":"rich","url":"https://osyo-manga.hatenadiary.org/entry/20111217/1324095598"}