3 ms·
Have you tried "explicit template instantiation"? If the library templates have good separation, you can just add a cpp file so the compiler doesn't need to ded
by Mailtemi 6y ago
Have you tried "explicit template instantiation"? If the library templates have good separation, you can just add a cpp file so the compiler doesn't need to deduce the type each time.
- RandoHolmes 6y agoyep, that's exactly what I do when I really end up having to use a header-only lib that uses templates. It's not that I'll outright refuse to use a header-only lib, only that I very very strongly prefer not using them.