<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>C++でゲームプログラミング</blog_title>
  <blog_url>https://osyo-manga.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>次のコード、てっきり default copy constractor が呼ばれると思っていたんですが、uniform initialization が優先されるんですね。 ちょっとハマった。 [ソース] 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 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20121214%2F1355472890&quot; title=&quot;uniform initialization と default copy constractor - 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>2012-12-14 17:14:50</published>
  <title>uniform initialization と default copy constractor</title>
  <type>rich</type>
  <url>https://osyo-manga.hatenadiary.org/entry/20121214/1355472890</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
