9

Eee... I don't even know if the name I am calling this is correct or not... but I am wondering if there is a template tracker for C++ out there somewhere. The functionality of it would be similar to the GCC compilers' -E switch (which expands all the macros), the only difference is that it would show the same thing for templates, such as which classes have been created, together with partial specializations, source code, which templated method are called, template parameter deduction, etc...

Ferenc Deak
  • 34,348
  • 17
  • 99
  • 167

2 Answers2

2

There is Templight, which makes it possible to trace template instantiations.

Fabio Fracassi
  • 3,791
  • 1
  • 18
  • 17
0

Template tracking needs human expertise. A clue could be replace all template types with some possible concrete types and check through stepping through / debugging, once you are convinced, get into the generic version using template.

Dr. Debasish Jana
  • 6,980
  • 4
  • 30
  • 69