Possible solution to template bloat problem?
Jacob Carlborg
doob at me.com
Tue Aug 20 00:16:14 PDT 2013
On 2013-08-19 22:22, H. S. Teoh wrote:
> If we were to set things up so that libprogram.a contains a separate
> unit for each instantiated template function, then the linker would
> actually pull in only code that is actually referenced at runtime. For
> example, say our code looks like this:
Doesn't the compiler already do something like that with the -lib flag?
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list