Using -frepo

The Red Fox ben@proximity.com.au
Tue Jan 13 07:37:00 GMT 1998


Hi,

What is the correct way to organise things to be able to use -frepo to
automatically instanciate templates?

Currently I put template declarations in a .h file and template 
definitions in a corresponding .CXX file. Then include the .CXX files
manually whenever I need to explicitly instanciate a template using:

template class Foo<int>;

In order to use -frepo, would I need to include the template definitions
along with the template declarations all the time, and the compiler works
out all the necessary instantiations?

Ta,
Ben

+---------------------------------------------------------+
|\\ + //   Ben Ross                                \\ ^ //|
| \- -/    ben@proximity.com.au                     \` '/ |
|  \|/     http://www.proximity.com.au/~ben/         \~/  |
+---+-------------------------------------------------+---+




More information about the Gcc mailing list