C26 reaches technical completion for a second time following contract dispute
The ISO C++ committee has officially finished technical work on the C++26 standard for the second time this year. The conclusion of the November meeting, held in Búzios, Brazil, marks a significant milestone in a process that hit an unexpected hurdle earlier this year. While the committee initially declared the work complete back in March, the subsequent Draft International Standard ballot did not secure the unanimous support required to move forward. This failure, which was largely attributed to ongoing international disagreements regarding the language's new contracts feature, necessitated a return to the drawing board to address specific concerns from various national bodies. The primary point of contention centered on the implementation of the contracts language feature, which includes pre-conditions, post-conditions, and contract assertions. These mechanisms are designed to allow developers to specify expectations for code execution, but they have sparked intense debate regarding their design and integration into the broader C++ ecosystem. During the six-day meeting in Brazil, committee members spent the majority of their time addressing these international comments. The group adopted an extension to the contracts feature and compiled a detailed rationale and historical account of the feature's development to provide clarity to the national bodies involved in the approval process. The hybrid event, hosted by the C++ Alliance, saw a robust turnout with approximately 220 attendees representing 27 different nations. The participation was split between those physically present in Búzios and those joining remotely via Zoom. Following the resolution of the comments regarding contracts, the committee is now preparing an updated final document. This version is expected to be submitted for a second international approval ballot, with the hope that the additional context and adjustments will satisfy the remaining concerns and allow for the standard to be published in the near future. While the focus remained heavily on finalizing C++26, the committee also looked toward the future by adopting several new features for the upcoming C++29 draft. Among the additions are labeled break and continue statements, which are expected to improve control flow readability, as well as new additions to the standard library such as std::ranges::any_view and views::slice. These inclusions suggest that while the committee has been occupied with the complexities of C++26, the momentum for future language evolution remains steady. The repetition of the technical completion phase highlights the rigorous and sometimes contentious nature of the ISO standards process. By reopening the C++26 work, the committee demonstrated a commitment to reaching a broader consensus rather than forcing a standard through despite significant international opposition. As the updated document moves toward its second ballot, the focus shifts to whether the compromises made in Búzios will be sufficient to finalize the standard and bring the long-debated contracts feature into the official C++ specification.