r/cpp • u/eisenwave WG21 Member • Oct 24 '26
Balloting has completed for C++26. Unfortunately it was Disapproved
https://www.linkedin.com/posts/robertseacord_balloting-has-completed-for-c26-unfortunately-share-7519795139859517440-AOth/Since the C++26 DIS has been disapproved, the next step is going to be taken in Buzios during the 2026-11 meeting. The committee will have to decide what changes to make (if any) and submit an FDIS (Final Draft of International Standard) for Balloting.
289
Upvotes
View all comments
Show parent comment
8
u/gmueckl Oct 24 '26
Isn't "best effort" doing a lot of heavy lifting here?
Developer A writes a library that has an inline function containing a contract in a header. He distributes the header and a prebuilt binary with contract evaluation semantics set to enforce.
Developer B is a user of that library and has inherited a codebase where some unknown predecessor has set contract evaluation semantics to ignore and as a result, contracts have deteriorated for a while and can't easily be reenabled.
Developer B is now having an issue with a crash deep in A's library and asks for help. A looks at the crash and finds a an invalid state that should have been caught by contracts way before the crash happened. Now, A has to figure out the execution flow that created that invalid state and needs to discover that the particular inline function in the header was the culprit because its contract was neutered by developer B's compiler settings. He can't determine that for certain without knowing B's compiler settings for B's project.