3 ms·
I'm quite fluent in both template metaprogramming and preprocessor metaprogramming. The former is significantly easier to write and understand, and, most import
by gpderetta 10y ago
I'm quite fluent in both template metaprogramming and preprocessor metaprogramming. The former is significantly easier to write and understand, and, most importantly, to debug.
There are some things that can't be done via templates and you have to resort to the preprocessor, but for everything else, I will choose templates.
I do agree that premature generalization, in all forms, is often the root of all evil.