Explicit instantiation

Learn about explicit instantiation.

If your compiler supports it, then you can use the ANSI C++ explicit instantiation syntax as defined in the ISO Standard for the C++ Programming Language. This method requires you to request instantiation explicitly in the source code. For more information about using explicit instantiation, see your C++ compiler documentation.

The explicit instantiation method requires more effort to use, but it allows you to control the placement of instantiated template code into the object modules. Also, as part of the ANSI C++ standard, it might be the most portable solution. Using explicit instantiation does not conflict with clearmake build avoidance.