~/talk

C++ Design Patterns - The Most Common Misconceptions (2 of N)

Talkat CppCon 2024 · on Sunday, 2024-09-15· [rust]
slides:none on file

States which common claims are wrong and why: std::variant is not a drop‑in replacement for virtual functions (it gives a closed set of types and different architecture), explicit object parameters can replace CRTP only when the base is used via the derived type, and CRTP splits into static interface versus mixin uses. Shows concrete examples (visitor/strategy/factory), explains when design changes break extensibility, and presents benchmark results where variant outperforms virtual dispatch for the shown scenario. Choose this if you want precise distinctions, examples, and measured tradeoffs.

AI-written summary · about

  1. 0:00C++ design patterns intro
  2. 1:12Talk overview and CRTP
  3. 3:00CRTP with inheritance
  4. 7:39CRTP limitations
  5. 9:25CRTP vs explicit params
  6. 12:30Static interfaces vs mixins
  7. 16:45CRTP forms terminology
  8. 20:21Concepts vs CRTP
  9. 24:36std::variant patterns
  10. 30:17Architecture separation
  11. 32:13GoF critique and virtual functions
  12. 34:39Modernizing with std::variant
  13. 40:00Performance comparison
  14. 42:50Architecture failures
  15. 47:14Why templates aren't a silver bullet solution
  16. 48:17std::variant vs virtual
  17. 51:09Dependency structures
  18. 52:34Architecture for large codebases
  19. 53:15Q&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.