3 ms·
If you know your types then you can define the templates' bodies into a static library and keep the definitions there.
by inetknght 5y ago
If you know your types then you can define the templates' bodies into a static library and keep the definitions there.
- boardwaalk 5y agoThe problems being: * External libraries don't do this. See: All those "header-only" libraries you see, starting back with boost * It's a total PITA once the types get complicated Source: Have worked for 10 years on a large codebase with "template auto instantiation" off.
- a_t48 5y agoEigen is the worst for this. :(