~/talk

Metaprogramming in C++14

Talkat ACCU 2017 · 2017-04-24..04-29· [c-and-cpp, compilers-and-language-design]
links:none on file
slides:none on file

Uses C++14 and Boost.Hana to represent types, integers and strings as values and builds concrete examples: a parser combinator that returns tuple results, an event system keyed by compile-time strings with a runtime fallback, and dimensional-analysis quantities using compile-time integers. Implements user literals _c and _s to lift values into types, catches wrong-event and unit mismatches with static_assert, and reports benchmarks (tens of millions of triggers) showing performance close to hand-written code.

AI-written summary · about

  1. 0:00Introduction to metaprogramming
  2. 1:14History of C++ metaprogramming
  3. 7:18Classic metaprogramming with MPL
  4. 12:18Boost Fusion and runtime objects
  5. 17:38Modern metaprogramming with Hana
  6. 25:06Parser combinators with Hana
  7. 35:52Dimensional analysis example
  8. 58:40Compile-time event system
  9. 1:17:50Future of metaprogramming
  10. 1:29:30Metaprogramming in C++17 and beyond
  11. 1:33:00Q&A and closing
~/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.