Lightning Talk: Help! My Expression Template Type Names Are Too Long!
summary
Shows a concrete C++20 trick that replaces deep expression-template types with a lightweight local derived type returned from a templated lambda, turning huge mangled names into compiler-friendly ones. Empirical result: reduces build time 40s → <2s on MSVC by cutting the type complexity. Caveats: MSVC only; the lambda must follow strict form (no templated call operator, no struct-inside-function variants) and the new type is a derived wrapper so behavior and ABI can differ.
AI-written summary · about
chapters (5)
- 0:00Introduction
- 0:21The problem of long types
- 2:22A trick to shorten names
- 3:52Stress testing build times
- 4:38Caveats and conclusions








