~/talk

Contracts for C++

Talkat ACCU 2024 · 2024-04-17..04-20· [c-and-cpp]
links:none on file
slides:none on file

Proposal pushes a Contracts MVP into C++26 with concrete syntax (pre(...), post(...) and contract assert), four runtime modes (ignore, observe, enforce, quick_enforce), and a replaceable handle_contract_violation callback in header <contracts>. Design guarantees zero‑overhead when checks are disabled, allows compile‑time checks, and targets ABI stability, but currently omits virtual‑function and some coroutine cases. Paper is at R6, committee work is ongoing and aims for acceptance before the C++26 evolution deadlines.

AI-written summary · about

  1. 0:00C++ contracts intro
  2. 1:13History and motivation
  3. 16:08Why C++ needs contracts
  4. 23:47Standardizing contracts journey
  5. 36:34Design principles for MVP
  6. 47:28Contract assertions syntax
  7. 1:19:23Open design questions
  8. 1:30:16Summary
~/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.