~/talk

Expressing Implementation Sameness and Similarity - Polymorphism in Modern C++

Talkat CppCon 2023 · on Tuesday, 2023-10-03· at 14:00· Adams, 6700 North Gaylord Rockies Boulevard· [rust]
links:none on file
slides:none on file

Survey claims which mechanisms actually express sameness: concrete examples with templates, mixins and CRTP downcast pattern show zero‑runtime cost reuse; C++23’s deducing this demonstrates where type deduction breaks because it mixes interface and implementation; operator<=> appears as a built‑in mixin; allocator/deleter design around allocate_shared vs allocate_unique shows a real API mistake in standard practice. Tradeoffs discussed include compile versus runtime overhead, information loss from copy‑paste, lack of reflection, and which patterns succeed or fail in long‑lived code.

AI-written summary · about

  1. 0:00Sameness in modern C++
  2. 10:36Interface vs implementation
  3. 13:21Traditional polymorphism
  4. 21:27Mixins for sameness
  5. 25:40Element-wise comparison
  6. 31:01C++23 deducing this
  7. 36:42Reference qualifiers
  8. 43:31Don't repeat yourself principle
  9. 49:18Customization points
  10. 53:12Dangers of C++20 concepts
  11. 56:23Other sameness mechanisms
  12. 56:45Q&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.