|
|
Dependency management refers to the automatic re-instantiation or not of out-of-date instantiations, such as might be triggered by a header file changing. For the manual schemes above this would be handled by makefile rules. That is, a specific object file is produced by telling the compiler to instantiate particular entities, and that object file depends on particular headers that declare and define the templates to be used.
For automatic instantiation, instantiation is done by replaying source files. Those source files should be made to depend not only on the normal headers, but also on the template declaration and definition files.