I want to compile a static library with a template class. I know this cannot be done for every type, but I know that programs that will make use of this library are going to need only a few template "instantiations" (I mean, for a few known types).
Is there a way to manually trigger compilation of the template class for these types within the library itself?