~/talk

Generalised Double Dispatch

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture, c-and-cpp]
links:none on file
slides:none on file

Implements a CRTP visitor set that replaces dynamic_cast and two-vtable lookups with compile-time resolution, using template recursion and boost::callable_traits to accept lambdas as visitors. Benchmarks claim dynamic_cast is an order of magnitude slower than a vtable lookup and the generated code drops from about 1600 assembly lines to 2 with optimizations enabled. The concrete classes simply static_cast themselves into the visitor base; the mechanism compiles errors for missing cases and produces identical runtime behavior while eliminating extra indirection and heap allocation.

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.