• Sources: primary
  • Thread: C++26 ballot failure over Contracts
  • Summary: At its November 2026 meeting in Búzios, the committee answered national body comments, mostly on contracts, by adopting P4451R2, which lets pre, post and contract_assert be marked always enforced, and voted 111 in favor, 9 opposed and 8 abstaining to reship C++26 with contracts. It also adopted C++26 fixes for reflection with modules, sender/receiver memory allocation and standard structural types, and added labeled break and continue, 0o octal literals, std::ranges::any_view and views::slice to draft C++29. The updated document is expected to go to a second DIS ballot.
  • Why it matters: C++26 keeps its name and contracts, and code that must never skip a check can now say so in source whatever contract semantics the build uses.
  • Background: C++26 contracts let a function declare preconditions (pre), postconditions (post) and in-body assertions (contract_assert), with the build choosing whether a violated check is ignored, observed or enforced. That per-build choice drew the main objection, since a library author could not guarantee a check runs. A DIS, or Draft International Standard, ballot is the ISO vote among national bodies. Sutter writes that past C++ DIS ballots had always passed unanimously, and this one failed after five national bodies voted Disapprove over contracts.
  • Follow-up: The second C++26 DIS ballot and the next WG21 meeting in Istanbul in March.