~/talk

Policy-based design in C++20

Talkat Meeting C++ 2018 · 2018-11-15..11-17· [rust]
links:none on file
slides:none on file

Policy-based design claims to replace runtime strategy objects with compile-time policy classes so a cable‑box example for DVB/DRM composes players, locks and protection without virtual tables. It uses templates, Boost.Hana style metafunctions, the detection idiom, concepts and simple type‑erasure via converting shared_ptr constructors to avoid boilerplate. The demo composes hybrid CAS+DRM protection by inheriting small policies, compiles when used and lets unused methods remain uninstantiated so errors only appear when invoked.

AI-written summary · about

  1. 0:00Start
  2. 7:14Strategy pattern (example)
  3. 28:19Templates in C++ (meta functions)
  4. 40:56Strategies vs. Policies
  5. 45:40(Expression) SFINAE
  6. 49:37Detection idiom
  7. 54:00Concepts
  8. 59:58Type erasure
~/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.