3 ms·
You've obviously never written any C++. The point of templates is precisely the fact that they make debugging easier, by replacing runtime assertions and bugs w
by otabdeveloper2 9y ago
You've obviously never written any C++. The point of templates is precisely the fact that they make debugging easier, by replacing runtime assertions and bugs with cryptic compile-time error messages.
Figuring out a compiler error is significantly easier than having to debug a malfunctioning test.
- syrrim 9y agoIs it? At runtime, I can cover my code with couts, and run a debugger. At compile time this is much harder.
- jnordwick 9y agoYou've obviously never tried to debug template heavy code. They are like ugly black boxes - you get an answer (maybe correct maybe not) or you get pages of incomprehensible often useless error messages. If c++ wanted a meta language, they really should have created one long ago instead of continuing this template madness.