This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: The future C++ template model in gcc
- To: gcc at gcc dot gnu dot org
- Subject: Re: The future C++ template model in gcc
- From: Florian Schintke <schintke at zib dot de>
- Date: Mon, 30 Jul 2001 10:13:58 +0200
- Reply-To: Florian Schintke <schintke at zib dot de>
Hi folks,
I understand the discussed problem how to generate all needed instantiations
of templates that are needed for different compilation units.
But what are the real reasons to generate all instantiations?
Maybe it is the size of the template parameters that differ for
different instantiations, but then it might be possible to generate
a generic instantiation that gets the size of template parameters as
parameters.
So my question is:
Why isn't it possible to generate a generic 'template meta
instantiation' that works for all possible instantiations?
Is it a performance issue? Are there problems with polymorphism and
overloaded functions?
Thanks in advance for your explanations.
Florian Schintke
--
Florian Schintke <schintke@zib.de>, http://www.zib.de/schintke/