This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The future C++ template model in gcc


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]