<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unk_pizza</author_name>
  <author_url>https://blog.hatena.ne.jp/unk_pizza/</author_url>
  <blog_title>おっさんプログラマの戯れ言</blog_title>
  <blog_url>https://unk-pizza.hatenadiary.org/</blog_url>
  <categories>
    <anon>C/C++</anon>
  </categories>
  <description>通常は、クラスのfriend指定時に、フレンドクラスの実体が存在する必要はない。 class A { friend class B; // OK }; class B {}; templateクラスをfriend指定する場合は前方宣言をしないとコンパイルエラーになる。 class A { friend class B&lt;int&gt;; // Explicit specialization of non-template class 'B' }; template &lt;class T&gt; class B {}; // Redefinition of 'B' as different kind of sym…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funk-pizza.hatenadiary.org%2Fentry%2F20130207%2Fp1&quot; title=&quot;templateクラスのfriend指定は前方参照が必要 - おっさんプログラマの戯れ言&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-02-07 00:00:00</published>
  <title>templateクラスのfriend指定は前方参照が必要</title>
  <type>rich</type>
  <url>https://unk-pizza.hatenadiary.org/entry/20130207/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
