title: template<typename T>: only static data member templates are allowed
body: <pre><code>class value {
      template&lt;typename T&gt; T value_1;
      float value_2;
  
  public:
      template&lt;typename T&gt; void Set1(T first) {
          value_2 = (float)0;
          value_1 = first;
      }
  
      void Set2(float second) {
          value_2 = second;
      }
  
      float Get2() {
          return this-&gt;value_2;
      }
  
      template&lt;typename T&gt; T Get1() {
          return value_1;
      }
  };
  </code></pre>
  
  <p><code>Value_1</code> gives out an error, saying that only static data member templates are allowed. Is there a way to keep <code>value_1</code> without a type?</p>