{"author_url":"https://blog.hatena.ne.jp/osyo-manga/","published":"2012-12-14 17:14:50","version":"1.0","image_url":null,"height":"190","url":"https://osyo-manga.hatenadiary.org/entry/20121214/1355472890","provider_name":"Hatena Blog","type":"rich","width":"100%","categories":["C++"],"blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","blog_url":"https://osyo-manga.hatenadiary.org/","description":"\u6b21\u306e\u30b3\u30fc\u30c9\u3001\u3066\u3063\u304d\u308a default copy constractor \u304c\u547c\u3070\u308c\u308b\u3068\u601d\u3063\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001uniform initialization \u304c\u512a\u5148\u3055\u308c\u308b\u3093\u3067\u3059\u306d\u3002 \u3061\u3087\u3063\u3068\u30cf\u30de\u3063\u305f\u3002 [\u30bd\u30fc\u30b9] struct X{ int value; }; int main(){ X x{10}; // error: cannot convert 'X' to 'int' in initialization // auto x2 = X{ x }; // X x2{ x }; // ok // auto x2 = X( x ); // X x2( x ); // X x2 = x; return \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20121214%2F1355472890\" title=\"uniform initialization \u3068 default copy constractor - 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>","author_name":"osyo-manga","provider_url":"https://hatena.blog","title":"uniform initialization \u3068 default copy constractor"}