Declare the instantiation in the header:

extern template class A&lt;int&gt;;


and define it in one source file:

template class A&lt;int&gt;;


Now it will only be instantiated once, not in every translation unit, which might speed things up.

How to use explicit template instantiation to reduce compilation time?
How should I get started with Forex (foreign exchange trading)? How should I prepare myself for it? Please give your answer thinking of me as a layman.
