RC RANDOM CHAOS

C++26 Technical Work Completed Again After Contracts Objections

· via Hacker News

Original source

C++26 is done (again): ISO C++ meeting trip report

Hacker News →

The ISO C++ committee finished technical work on C++26 for a second time this week after the first approval ballot unexpectedly failed—a historic first. Five national bodies voted to disapprove the standard specifically due to concerns about the contracts feature, which allows programmers to specify preconditions, postconditions, and runtime assertions. Rather than remove contracts, the committee reaffirmed its commitment to include the feature and adopted an extension that lets developers mark specific assertions as always-enforced, addressing the primary international objection.

Support for the revised standard strengthened to 92.5% approval, up from 90.5% at the March finalization vote. The committee rejected multiple requests to strip contracts entirely despite sustained debate over four previous meetings. The changes now proceed toward a second approval ballot expected to advance soon. Beyond contracts, the committee also adopted improvements to reflection for better module compatibility, enhanced memory allocation control in async operations, and support for compile-time type-safe strings using string_view and span as template parameters.

The meeting in Brazil drew 220 participants representing 27 nations, with unusual remote participation due to U.S. aviation disruptions. C++29 development also advanced this week with the adoption of labeled break and continue statements and new range views.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.