title: Simple example with templates
body: <p>This is a simple question, and I am sure that it has been answered before but I cannot seem to find a good answer.</p>
  
  <p>I have a class, Point:</p>
  
  <pre><code>template&lt;class T&gt;
  Point{
  \\code
  }
  </code></pre>
  
  <p>...and now I want a vector of Points, some of which have T as an integer which have T as a double. I want to write something like</p>
  
  <pre><code>template&lt;class T&gt;
  std::vector&lt;Point&lt;T&gt; &gt; points;
  </code></pre>
  
  <p>But, alas, this doesn't compile with the error "expected primary-expression before 'template'". I haven't been able to fidget with this code to make it work. Also relevant is that points is in the main class, so I can't stick the template declaration outside the function.</p>
  
  <p>If someone could direct me to a solution, I would be much obliged.</p>
  
  <p>Thanks.</p>