News for hackers. Stuff that matters.
Re:The C++ Build Process Explained by kazinator on Wednesday November 14, 2018 @07:51PM (#18455866)
There is also explicit instantiation: it's a language feature!

Split the template into declarations and definitions, similar to .h versus .cc.

Then #include the definition into some module where you write template instantiations for all the needed types.

Re:The C++ Build Process Explained by gpderetta on Thursday November 15, 2018 @09:21AM (#18459384)
Painful, but if you know that a template will be only instatiated for a finite set of types, it can be worth it.