This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: auto instantiation?


Hi Dave,
> When using some big libraries, they will have a folder full of
> "instantiation" files which declare templates with commonly used types. I
> read somewhere that you can turn on "auto instantiation" with some compilers
> which will allow you to use any type you'd like in a templated class in a
> library without having to create an instantiation file. Can you do this with
> g++?
That should be possible using the option "-frepo":
from the man-page:

-frepo
	Enable automatic template instantiation at link time.  This
	option also implies -fno-implicit-templates.

HTH,

Axel


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