Template meta-programming is a meta-programming technique in which templates are used by a compiler to generate temporary source code, which is merged by the compiler with the rest of the source code and then compiled.
I am writing a very simple template class using Metaprogramming to compute sum in compile time, as below: #include <…
c++ templates template-meta-programming