The WG21 ISO C++ committee has decided to keep the contentious Contracts feature in the language despite the previous submission being disapproved by the national bodies in a vote that is normally a formality.
Committee chair Herb Sutter reported that the “request by multiple comments to remove contracts from C++ 26” was not approved: “the committee discussed, revoted, and reaffirmed it wants to retain contracts in C++ 26.” The plan now is to resubmit an updated proposal to the national bodies for a second approval ballot.
The Contracts feature has been amended to address some concerns from those opposed to its inclusion. In particular, a paper by Joshua Berne enabling enforcement of a contract assertion such that it “must not allow continuation past a violation” has been adopted as part of C++ 26. This was a feature that was intended but for C++ 29, which has now been brought forward, as some parties considered that Contracts could not be sensibly adopted without it.
Berne has been working since 2019 on adding Contracts to C++. His paper on adding an always-enforced feature acknowledges that “there are obvious concerns that have prevented such an adoption before,” which he goes on to describe. Adopting the feature now is not his preferred option. An earlier paper, P3400R5, sets out what was planned for C++ 29 and the new feature is more or less a subset of this. The paper’s conclusion states that WG21 always knew that the initial release of Contracts was only a “solid foundation for a long and fruitful future of evolution” and that while the committee was confident in its original baseline release, “We are less certain of the wisdom of rushing a small part of what P3400R5 provides into C++26 for questionable reasons.” Berne added though that “adopting it early would certainly be a better option than holding up the entire Contracts facility.”
Sutter puts a positive spin on the outcome, noting that in March 2026 the WG21 committee was 90.5% in favour of the proposed C++ 26 standard, and now is 92.5% in favour. Close examination of the figures though shows that in March there were 12 opposed and 3 abstaining, and now 9 opposed and 8 abstaining, so even though opposition has reduced, the increased number of abstentions indicated continued uncertainty by a minority.
There is some risk here. The committee could have attempted to remove Contracts from C++ 26 with the intention of re-introducing the feature in C++ 29. This would almost certainly have passed a second ballot; but would also have been difficult to achieve as removing the feature is not a straightforward change. As it stands though, there is risk that the revised proposal will again fail, though one presumes that the committee is confident of a better outcome.
Since the vote to disapprove, Contracts has been widely debated in the C++ community; there is a lack of consensus on the topic, trust has been lost, and the opposition of C++ inventor Bjarne Stroustrup is a key factor. This Reddit thread seems well-informed.