title: Clang/g++ options for template instantiation
body: <p>I'm looking for a compiler option on g++/clang++ to control the instantiation of methods in explicit instantiations.</p>
  
  <p>Suppose I have a classtemplate <code>Foo&lt;T&gt;</code> with some explicit instantiation</p>
  
  <pre><code>template Foo&lt;int&gt;;
  </code></pre>
  
  <p>I want to enable the instantiation of all public methods. This doesn't seem to be the default, as I'm having to add manual instantiations for all the members in order to avoid link errors;</p>
  
  <pre><code>template void Foo&lt;int&gt;:DoStuff(int);
  template int Foo&lt;int&gt;:GetSomeStuff();
  </code></pre>