Visualize Template Instantiations - Understand your Template Bugs
summary
A tool called Templator visualizes C++ template instantiation and overload selection by building instantiation contexts from Eclipse CDT parsing and rendering them as an interactive click-through instantiation view. It reproduces which template and overload the compiler picks (useful for pop-quiz examples), shows transitive instantiations like vector<bool> specializations, and integrates into Cevelop. Work is preview quality: it solves many examples without compiling but misses some edge cases (auto, heavy TMP, or beyond CDT visibility).
AI-written summary · about
chapters (7)
- 0:00Template visualization intro
- 4:05Template instantiation demo
- 7:02Overload resolution quiz
- 9:15Standard library specializations
- 11:24Advanced template debugging
- 13:33Summary and tool capabilities
- 14:37Q&A on tool limits
related talks
53mDebug C++ Without Running
47mReducing Template Compilation Overhead, Using C++11, 14, 17, and 20.
01h 18mTesting C++ Templates: Investigating Tests for C++ Templates using Adversarial Methods
01h 30mRethinking the Way We Do Templates in C++
01h 37mRethinking the Way We Do Templates in C++ even more
01h 01m“Template Normal Programming (part 2 of 2)"
57mIntroduction to C++ Template Metaprogramming
32mIntroducing Eclipse CDT.cloud - C/C++ tooling in the web
