Stroustrup versus the committee majority: a row over contracts holds up the new C++ standard
The draft of C++26 failed to win the required support from national standards bodies, something that had never happened before in the language's history.
The Draft International Standard of C++26 failed in October in the vote among ISO's national standards bodies. According to The Register, 13 voted in favour, 9 against and 12 abstained, while ISO allows at most a quarter of votes to be negative. Committee member Andreas Fertig says, as quoted by iThome, that as far as he knows this is the first time a draft of the C++ standard has fallen at that stage; the only precedent he found was C++/CLI in 2006, a project that was later abandoned.
The point of contention is contracts: conditions developers can set before and after a function, plus runtime checks, meant to catch errors before they lead to undefined behaviour. The feature was already pulled from C++20 in 2019 and won a majority again in working group WG21 in March 2026. Language creator Bjarne Stroustrup and his allies consider the design rushed, too complex and insufficiently tested, The Register reports. Critics also point out, according to iThome, that compilers may choose how to check, up to skipping the check altogether.
Fertig accuses the opponents of refusing to accept their defeat in the committee and thereby undermining trust. Harry Bott, head of the C++ Alliance, sees it instead as a sign that the process is working, according to The Register. According to iThome, the draft can be reworked and put to a new vote, sent back to the committee, published as a technical specification or dropped altogether. WG21 was due to meet in Brazil from 16 November to discuss the next steps; the planned publication this year is now in jeopardy.