~/talk

C++: How I learned to stop worrying and love metaprogramming

Talkat CppCon 2015 · 2015-09-21..09-25· [compilers-and-language-design]
slides:none on file

Describes a production database (quasardb) built since 2008 using real template metaprogramming to reduce bugs and maintenance while improving speed, claiming zero runtime overhead by doing checks and code generation at compile time. Shows concrete tools: C++11 variadic templates, Boost.Fusion and Spirit X3, a tiny library called Brion, and MSVC/Clang/GCC cross‑platform builds. Demonstrates compile‑time factorials, type lists, variant‑based command dispatch with static_assert registration, and warns about higher compiler memory and 2GB limits on old toolchains.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:07First contact with metaprogramming
  3. 4:39Why metaprogramming matters
  4. 10:02Metaprogramming vs. regular programming
  5. 14:17Brion library introduction
  6. 15:01Compile-time vs. runtime concepts
  7. 24:27Simple template metaprogramming example
  8. 27:41Advanced type manipulation
  9. 29:31Improving command patterns
  10. 33:25Serialization with metaprogramming
  11. 38:25Pros, cons and tips
  12. 41:15Getting started with metaprogramming
  13. 46:29Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.