~/talk

Calling code w/o headers...

Talkat CppCon 2017 · 2017-09-24..09-29· [frontend-architecture]
slides:none on file

Shows a concrete way to call a function from a library header you do not have at compile time by exploiting delayed template instantiation and ADL: declare a template that defers the call, then add a tiny namespace monorail helper that forces argument deduction so lookup finds MonorailHash regardless of include order. Tests reveal MSVC accepts the naive variant but Clang/GCC need the helper; the hack works across include orders and avoids changing callers.

AI-written summary · about

  1. 0:00Start
  2. 0:10The obvious solution
  3. 1:19If you don't mind modifying callers...
  4. 1:50Delayed template instantiation to the rescue!
  5. 2:15Delayed template instantiation to the rescue, 3
~/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.