<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gikan</author_name>
  <author_url>https://blog.hatena.ne.jp/gikan/</author_url>
  <blog_title>(やりこれ出張所)ほうれんそう</blog_title>
  <blog_url>https://gikan.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>昨日は暗黙の型変換について書きましたが、ものによっては暗黙の型変換をしたくない時もあります。そこで、explicit修飾子というキーワードがあります。 explicit 修飾子 指定したコンストラクタは、暗黙の型変換に使用できなくなる。 使用方法：explicit コンストラクタ名〜 これを使うことで、暗黙の型変換によるコンストラクタの使用を禁止することができます。 『= 演算子』をオーバーロードした値以外は、代入したくないなーと思ったときに使ってみてはいかがでしょうか。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgikan.hatenadiary.org%2Fentry%2F20060321%2Fp2&quot; title=&quot;暗黙の型変換の対策 - (やりこれ出張所)ほうれんそう&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>2006-03-21 00:00:01</published>
  <title>暗黙の型変換の対策</title>
  <type>rich</type>
  <url>https://gikan.hatenadiary.org/entry/20060321/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
