<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pidekazu</author_name>
  <author_url>https://blog.hatena.ne.jp/pidekazu/</author_url>
  <blog_title>Style</blog_title>
  <blog_url>https://pdkz.hateblo.jp/</blog_url>
  <categories>
    <anon>c++</anon>
  </categories>
  <description>例えば以下のようなクラスを定義して、インスタンスを生成しようとするとコンパイラ時にinvalid conversion from ‘const char*’ to ‘char*’といったエラーがでる。 class A { private : char *name; public : A(char *name); } A::A(char *name) { this-&gt;name = name; } これは、参考リンクによれば、引数にconstを付ければ解決するようだ。しかし、コンストラクタ内でメンバ変数に値を代入しようとすると、今度はinvalid conversion from ‘const c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpdkz.hateblo.jp%2Fentry%2F20130607%2F1370585713&quot; title=&quot;invalid conversion from ‘const char*’ to ‘char*’の対処 - Style&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>2013-06-07 15:15:13</published>
  <title>invalid conversion from ‘const char*’ to ‘char*’の対処</title>
  <type>rich</type>
  <url>https://pdkz.hateblo.jp/entry/20130607/1370585713</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
