Template Shenanigans
summary
Concrete fixes and tools that actually change outcomes: how to extract deduced types at runtime with __PRETTY_FUNCTION__, or force compile‑time prints using an instantiation error or a deprecated static variable and the always_false trick; how to shrink error noise with camamilla; inspect generated code and template instantiations on cppinsights.io; use metashell for compiler‑level tracing; count constructor calls with tracer types; and measure compile time with -ftime-report, buildbench and metabench.
AI-written summary · about
chapters (6)
- 0:00Start
- 9:16Simplify the error message
- 12:19Template debugging
- 20:47Print types at compile time
- 44:40Creating Archetypes
- 49:19Comparing build times
related talks
01h 03mTemplate Metaprogramming: Practical Application
01h 10mType Deduction and Why You Care
01h 03mTemplates Made Easy with C++20
33mHidden Gems of TypeScript compiler
21mTypescript meta programming from 0 to 100
59mCute C++ Tricks, Part 2.5 of N - Code You Should Learn From & Never Write
36mNavigating TypeScript Performance for Better Dev Experience
01h 03mTemplate-less Metaprogramming in C++
