ILE C/C++ Programmer's Guide

External Linkage

For other functions and for static data members that have external linkage, defining them in more than one compilation unit would normally cause an error when the program is bound. ILE C++ avoids this problem by giving special treatment to template-generated versions of these objects. At bind time, ILE C++ gathers all template-generated functions and static-member definitions, plus any explicit specializations, and resolves all references to them:

Note:
Multiple template-generated definitions of functions or static members result in larger modules and longer compile times. The duplicated code for the templates is eliminated during binding, so that executable programs are not larger.


[ Top of Page | Previous Page | Next Page | Table of Contents ]