hn.today

C++26 is done (again) – Trip November 2026 ISO C++ standards meeting

herbsutter.com7 points7 comments
Screenshot of C++26 is done (again) – Trip November 2026 ISO C++ standards meeting

The November 2026 ISO C++ meeting in Búzios focused mainly on reopening and completing C++26 technical work after its first international approval ballot failed to pass. The objections were concentrated on contracts - preconditions, postconditions, and contract assertions - and the committee reconsidered national-body comments, including requests to remove contracts from the standard. It chose to retain them and added a way to mark a contract as always enforced, so a violation stops execution regardless of how other contracts are configured. The committee also adopted changes to improve reflection with modules, give memory allocation more flexibility with senders and receivers, and broaden the structural types usable in compile-time programming. With these revisions, the committee voted to resubmit C++26 for another approval ballot; its vote was 92.5% in favor.

The meeting also advanced C++29, adopting language and library features while keeping the draft aligned with the C++26 revisions. Core-language changes include portable octal literals using 0o or 0O, with the traditional leading-zero form deprecated, and labeled break and continue statements for targeting specific loops in nested constructs. Library additions include std::ranges::any_view, which type-erases views while allowing their traversal properties to be specified; views::slice, for selecting a range by start and end positions; and optional::get_ptr(), for accessing a pointer to an optional’s contained value. About 220 experts participated in the six-day meeting, and work on C++29 is set to continue at the next full meeting in Istanbul in March.

Read on herbsutter.com7 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Big Data Is Dead

Big Data Is Dead

Big data is not the main obstacle to useful insights: hardware has kept pace with data growth, while teams still struggle to make sense of their information. The author argues that organizations should focus on making data easier to understand and use, rather than buying tools built for ever-larger datasets. (motherduck.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.