~/talk

Perspectives on Contracts for C++

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

A concrete proposal (P2900) aims to add contracts to C++26 with fuller support in C++29, specifying preconditions, postconditions, and contract assert and a per-translation-unit model that gives three checkboxes per translation unit (off / detective / hard‑hat) so compilers can choose enforcement location. The design accepts double-checked assertions, allows sampling, relies on devirtualization when available, treats termination as implementation‑defined, and admits one awkward API case still unresolved.

AI-written summary · about

  1. 0:00Contracts in C++
  2. 2:32Assertions and redundancy
  3. 8:35C++ assertion behavior
  4. 15:00Preconditions and postconditions
  5. 21:02Assertion modes
  6. 26:00Ensuring assertions do nothing significant
  7. 33:09Debugging assertions
  8. 39:59Perspectives on contracts
  9. 41:28Q&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.