~/talk

“Variadic expansion in examples"

Talkat CppCon 2016 · 2016-09-18..09-23· [compilers-and-language-design]
links:none on file
slides:none on file

Covers practical parameter-pack expansion use cases and pitfalls and shows real code: uses std::integer_sequence to unpack tuples into calls, uses empty packs / enable_if idioms to hide overloads, and demonstrates the braced-init-list trick to force left-to-right evaluation so per-argument expressions run safely. Builds an in-line variant visitor by expanding a pack of lambdas into a call table (with a GCC workaround) and implements a custom variant using aligned_storage; code mostly works but GCC still requires the workaround while newer compilers emit better static init code.

AI-written summary · about

~/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.