Quantcast
Channel: Mlangc's Blog
Viewing all articles
Browse latest Browse all 10

Using C++0x Variadic Templates to Pretty-Print Types

$
0
0
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 [...]

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles



Latest Images