Re:Building and Linking Libraries in C
by dfox on Friday December 23, 2016 @06:02AM
(#13244165)
C++98 contained some provisions for that ("export template"), but anecdotally there is exactly one compiler that supports it and the whole mechanisms was found to cause more problems than it solves. See: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n142...
Problem with template instantiation is that the mechanism is too general to be amendable to some kind of meaningful precomputation.
Problem with template instantiation is that the mechanism is too general to be amendable to some kind of meaningful precomputation.