title: Dynamic Template Instantiation
body: <p>I've got a class template, and I need to declare an object of that class, without defining the type parameters, so that I can define them conditionally later, e.g.:</p>
  
  <pre><code>template&lt;typename T&gt;
  class A{
  public:
      A(T v){var = v};
      ~A(){};
  
      T var;
  }
  
  int main(){
      A&lt;&gt;* object; // Or sometihng along these lines...?
      if(/* something*/)
          object = new A&lt;float&gt;(0.2f);
      else{
          object = new A&lt;int&gt;(3);
      }
  }
  </code></pre>