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
Florian Schintke <schintke@zib.de> writes:
| [Gabriel Dos Reis]
| > Florian Schintke <schintke@zib.de> writes:
| >
| > | But what are the real reasons to generate all instantiations?
| >
| > A template is instantiated for given template-arguments. The set of
| > template-arguments is unbounded. So what do you mean by "to generate all
| > instantiations"?
| OK, with all instantiations I meant all necessary instantiations.
The question is how to you determine the set of "all necessary
instantiations"?
| My idea is to not instantiate the templates,
| but to provide a generic template implementation that works
| for all template arguments.
How, given a template, do you construct "a generic template
implementation that works for all template arguments"?
-- Gaby