10.5. Template registry: The preferred method

New in VisualAge C++ for AIX Version 6.0 compiler is the template registry method of template handling. The compiler decides which template code to instantiate by referring to and updating a template registry file as compilation occurs. This method is fast, efficient, and best of all, does not require reorganization of your template code.

10.5.1. The -qtemplateregistry option

The -qtemplateregistry option maintains, in a registry file, records of all template instantiations as they are encountered in the compilation unit, and ensures that only one instantiation of each template is generated. By default, the compiler writes to a file named templateregistry in the current directory. You may optionally ...

Get Developing and Porting C and C++ Applications on AIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.