C++ automatic template instantiation?

Tudor Hulubei tudor.hulubei@ecora.com
Wed Apr 19 14:07:00 GMT 2000


  On Wednesday, 19 April 2000, Martin v. Loewis wrote:
> > Is there any code in the current snapshots to replace manual template
> > instantiation? The existing -frepo in 2.95.2 appears to miss lots of
> > used symbols.
> 
> There is code in gcc 2.95.2 to replace manual template
> instantiation. Just compile without -frepo, and all will work fine.

Isn't that going to make your code n times larger because it will
instantiate all the templates in all the object files?

Tudor



More information about the Gcc mailing list