<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>programer_hoshimi</author_name>
  <author_url>https://blog.hatena.ne.jp/programer_hoshimi/</author_url>
  <blog_title>Programメモ</blog_title>
  <blog_url>https://programer-hoshimi.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>前に引数に任意の型を代入できる行列クラスを実装したときにおきたエラー。 /** * @file class.h */ template&lt;class T&gt; public class Class{ public: Class(); ~Class(); T func(){ return t; } private: T t; }; このテンプレートクラス内のメンバ関数の内容（今回の場合はfunc()）をヘッダではなくcppファイルの方にかくとリンクのエラーを返すのです。このエラーは仕様らしく、たくさんの人が詰まったことがあるエラー（？）らしい。 コンパイラがtemplateを解釈する方法にはinclu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogramer-hoshimi.hatenadiary.org%2Fentry%2F20090920%2F1253454147&quot; title=&quot;templateクラスのエラー - Programメモ&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>2009-09-20 22:42:27</published>
  <title>templateクラスのエラー</title>
  <type>rich</type>
  <url>https://programer-hoshimi.hatenadiary.org/entry/20090920/1253454147</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
