Recently I stumbled over an exercise in the very interesting book C++ Template Metaprogramming. The challenge of the exercise is to make something like the following compile and do what you expect: Note that we cannot use typeid, as typeid(T).name() is not required to print anything meaningful, and in practice doesn’t. As long as we [...]
