extern template in V3 (was: Re: GCC viciously beaten...)
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Mar 16 05:34:00 GMT 2004
Paolo Carlini <pcarlini@suse.de> writes:
| Wasting compile time in redundant instantiations may be also an important
| concern, right?
Yes.
| Another, more practical, curiosity I have is the following: now I'm
| also reading
| the manual about extern template and it talks about "to allow forward
| declaration
| of explicit instantiations",
Yes that is what I meant by:
> (2) In the current proposal for "extern template", it is just a way
> to tell the compiler not to instantiate right now from an
> arbitraty template definition that would be around. It is
> essentially a mean to forward declare an explicit instantiation.
| however, I'm not at all sure that *all* the instantiations
| suppressed via extern have a corresponding *explicit* instantiation
| somewhere!
I did no audit trail, but I think if we missed one we would have heard
of it :-)
-- Gaby
More information about the Libstdc++
mailing list