3 ms·
With C++ in particular, it's because type-checking happens only after a template has been instantiated, so the error messages you get are based on the instantia
by munificent 8y ago
With C++ in particular, it's because type-checking happens only after a template has been instantiated, so the error messages you get are based on the instantiated types and not the original template.
- bogomipz 8y agoI apologize if this is a naive question but could or could have C++ used type erasure at run time similar to what Java does? Or is there some technical reason it's not feasible in the C++ run time?