<?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>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>今まで知らなかったので覚書。 C++ では void* 型から他のポインタ型へ暗黙的に変換することはできない。 なので、次のようなコードはエラーになる。 void* vp; // error: cannot initialize a variable of type 'int *' with an lvalue of type 'void *'; int* p = vp; これは C++ の仕様であって、C 言語であれば問題なく変換することができる。 なので、NULL の定義も C 言語であれば #define NULL ((void*)0) と、いう風に定義されている事が多いが、C++ だと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F08%2F24%2F000000&quot; title=&quot;C++ では void* から他のポインタ型へ暗黙的に変換できない - Secret Garden(Instrumental)&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>2015-08-24 00:00:00</published>
  <title>C++ では void* から他のポインタ型へ暗黙的に変換できない</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2015/08/24/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
