~/talk

On the benefits of non-intrusiveness

Talkat NDC Toronto 2026 · 2026-05-05..05-08· [c-and-cpp]
links:none on file
slides:none on file

Compares intrusive OOP (public inheritance, interfaces) with non‑intrusive C++ techniques and shows concrete recipes: using traits and std::numeric_limits to expose a type’s max value without changing existing types, a void_t‑based detection pattern to test whether expressions compile, and C++20 concepts to require “addable” or “incrementable” types at compile time. Contrasts those with C# constraints and extension methods, explains refactoring and compile‑time costs, and demonstrates wrappers/variant approaches that work without modifying original classes.

AI-written summary · about

  1. 0:00Introduction
  2. 5:26Intrusive solutions problems
  3. 12:53Intrusive C# downsides
  4. 22:31Non-intrusive benefits
  5. 30:00Traits in C++
  6. 41:13Generic code validation
  7. 47:54C++ concepts
  8. 55:45Extension methods
  9. 59:59Choosing non-intrusive
  10. 1:01:01Q&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.