<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rhysd</author_name>
  <author_url>https://blog.hatena.ne.jp/rhysd/</author_url>
  <blog_title>はやくプログラムになりたい</blog_title>
  <blog_url>https://rhysd.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>クラススコープでは，変数テンプレートは静的なメンバ変数でしか使えない． struct X { // OK template&lt;class T&gt; static T hoge = T{}; // NG template&lt;class T&gt; T huga = T{}; }; なので，オブジェクトごとにメンバ変数テンプレートを持つということはできない． 少なくとも現時点での clang のエラーメッセージではどこがまずいのか気づけなかった． error: member 'huga' declared as template non static data member initializer は C++1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frhysd.hatenablog.com%2Fentry%2F2014%2F01%2F06%2F030729&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>2014-01-06 03:07:29</published>
  <title> クラススコープの変数テンプレート</title>
  <type>rich</type>
  <url>https://rhysd.hatenablog.com/entry/2014/01/06/030729</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
