Re:A brief guide to C++ template metaprogramming
by gpderetta on Sunday September 25, 2016 @04:44PM
(#12577322)
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.
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.