This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Q: template instantiation
- To: EGCS list <egcs at cygnus dot com>
- Subject: Q: template instantiation
- From: Niku Kaitaniemi <niksa at uta dot fi>
- Date: Sat, 22 Aug 1998 16:01:24 +0300 (EET DST)
What is the optimal way of instantiating templates, measured by
compile time and g++ memory usage?
I am currently instantiating templates explicitly the way I did with g++
v2.7.2. I include only template declarations in normal source files, which
are compiled with -fno-implicit-templates. Then I have at least one
template instantiation source file, that includes template definitions and
explicitely instantiates all templates used in the project and is compiled
without -fno-implicit-templates.
--
"This code is guaranteed." - Famous last words
niksa@uta.fi