<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>DOSEI</author_name>
  <author_url>https://blog.hatena.ne.jp/DOSEI/</author_url>
  <blog_title>DOSEIの日記</blog_title>
  <blog_url>https://dosei.hatenadiary.jp/</blog_url>
  <categories>
    <anon>メモ</anon>
    <anon>プログラミング</anon>
    <anon>C++</anon>
  </categories>
  <description>規格では 5.3.4 の 5 で、 int * a = new int [100] (); のように最後に括弧をつけることによって、 int 等の型でも value-initialized されることが規定されている。しかし、なぜか配列の new は初期化できないという説明がちまたであふれかえっている。どうも、過去のコンパイラによるバグ実装がいけないらしい。 実際、 gcc でちゃんとゼロ初期化されないバージョンがあったらしい。最近のはちゃんとできるはず。以下の記事参照。 http://d.hatena.ne.jp/uskz/20080421/p1 で、 #include &lt;cstdlib&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdosei.hatenadiary.jp%2Fentry%2F20111013%2Fp1&quot; title=&quot; value-initialized array by new operator - DOSEIの日記&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>2011-10-13 00:00:00</published>
  <title> value-initialized array by new operator</title>
  <type>rich</type>
  <url>https://dosei.hatenadiary.jp/entry/20111013/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
