title: Getting / Setting static members of a template struct during runtime
body: <p>I am trying to store information about a class with a template struct with static members during runtime, however I cannot get or set the static member without an error.</p>
  
  <p>Why doesn't this code work?</p>
  
  <pre><code>template &lt;typename T&gt;
  struct InfoHolder
  {
      static const char* name;    
  };
  
  int main()
  {
      InfoHolder&lt;int&gt;::name = "This is an integer";
      cout &lt;&lt; InfoHolder&lt;int&gt;::name &lt;&lt; endl;
  
      return 0;
  }
  </code></pre>