3 ms·
Why would you want run-time code generation for things that you can also generate at compile time? A linker is there to link, not to compile. One of the big p
by jstimpfle 8y ago
Why would you want run-time code generation for things that you can also generate at compile time? A linker is there to link, not to compile.
One of the big problems with templates is that you're not required to instantiate them explicitly. So you end up with lots of duplicate instantiations. Maybe try doing it explicitly, always - have a well defined place where the template is instantiated. You can also put the compiled code in a library, I think. (There seems to be an extern template feature since C++11).
Anyways, templates are a mess...