~/talk

Contracts, Safety and Correctness in C++

Talkat ACCU on Sea 2026 · 2026-06-17..06-20· [c-and-cpp]
links:none on file
slides:none on file

Argues that C++ contracts target safety and correctness: contracts expose pre/post invariants, C++26 defines modes ignore, observe, enforce, quick_enforce and enforce is the default, but contracts can hurt safety if violations terminate programs. Proves safety composes locally (caller must uphold preconditions) while liveness ≠ composable generally, yet proving safety first reduces liveness to progress (no livelocks). Recommends lightweight documentation contracts for concise specs and notes practical limits (heavy runtime checks, virtuals in C++29).

AI-written summary · about

  1. 0:00Introduction
  2. 3:38Correctness, safety, liveness defined
  3. 14:20Safety flavors and types
  4. 22:36Safety composability and invariants
  5. 33:24Liveness does not compose
  6. 40:20Correctness composability
  7. 44:57C++ contracts for safety
  8. 55:02Contracts to correct software
  9. 1:03:48Key takeaways
  10. 1:08:52Q&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.