DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Instantiating C++ templates

Dependency management

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.


Next topic: Performance
Previous topic: Automatic instantiation

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004