6 ms·
C++ monomorphises generics on demand too. That's why it can have errors specific to specialization and why template error messages spam long causal chains. C++
by vnorilo 2y ago
C++ monomorphises generics on demand too. That's why it can have errors specific to specialization and why template error messages spam long causal chains.
C++ compile times are due to headers. Which in case of templates result in a lot of redundant work then deduplicated by the linker.