r/cpp • 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

399 comments sorted by

View all comments

Show parent comment

52

u/STL MSVC STL Dev Oct 24 '26

Disagree. It's hard to sway one NB, let alone a bunch. If there's enough discontent to make this possible, something is wrong and the WP needs to be fixed. It's happened before with Old Concepts and it can happen again.

I haven't been following Standardization very closely (for the ironic reason that too much stuff with too little implementation experience has been getting Standardized, so keeping up with the implementation treadmill consumes all my time these days), but describing the situation as "clear and stable consensus" is obviously not the case from what I've seen.

21

u/eisenwave WG21 Member Oct 24 '26

Many things have been removed in response to NB comments on the CD, including Old Concepts, and very recently, trivial relocation. This is perfectly fine and expected.

We had a bunch of NB comments to remove or significantly alter Contracts, and other than pulling contracts on virtual functions, not much resulted from that. There was very strong consensus in WG21 to keep Contracts in C++26 in response to the comments on the CD (about 5:1 consensus against removal), and this has not substantially shifted at any point. If anything, the more Contracts are discussed, the more consensus increases in favor of them.

If you're getting the impression that there is no consensus in WG21, that's because there is an extremely vocal minority within WG21 that refuses to take no for an answer and attempts to relitigate at the NB level.

23

u/GabrielDosReis Oct 24 '26

If you're getting the impression that there is no consensus in WG21

Consensus for ISO C++ standards isn't decided at WG21 level. That is decided at SC22 level, that is the whole point of the ballot process!

If you operate under the assumption that you don't need to build consensus at SC22 level, then you're only luring yourself into failure. WG21 chairs and officers should know that.

14

u/13steinj Oct 25 '26

Yet another show of the insane beurocracy that is this standardization process that should be done away with as quickly as possible.

11

u/eisenwave WG21 Member Oct 25 '26 edited Oct 25 '26

Let's put aside the fact that this is is just how our ISO procedures work.

Why do you personally believe that the additional stage of consensus at the SC22 level is to the benefit of the C++ programming language, its users, and its implementers? Why is it important to C++ that the Finnish, Japanese, US, and other national bodies, have the final say on whether C++ as a standard proceeds, rather than, say, a consortium of implementers?

Furthermore, do you think that it is sufficient for WG21 to carefully consider all NB comments, come to a consensus on a direction, and report that consensus back to the NBs? What more can WG21 do to increase consensus at the SC22 level, other than just give in to the demands of the NBs against WG21's own good conscience and technical judgment? Of course, any such reaction of last resort may also decrease confidence within other NBs who approved the DIS as is.

11

u/Difficult-Court9522 Oct 25 '26

If a topic has to be relitigated multiple times and the opponents have very strong arguments that aren’t addressed then I’m happy a minority can block a feature.

17

u/GabrielDosReis Oct 25 '26

Let's put aside the fact that this is is just how our ISO procedures work.

Sorry, I can't put that fact aside. That is the reality we live in.

Why do you personally believe that the additional stage of consensus at the SC22 level is to the benefit of the C++ programming language, its users, and its implementers?

If you do not want an ISO standard, don't work on a standard that is governed by ISO rules when you joined said group.

17

u/foonathan Oct 24 '26

Contracts were voted in by 100 votes in favor, 14 against, and 12 abstentions. EWG voted repeatedly against changing some of the more controversial points, voted 9-4-5-8-41 against NB comments removing them from C++26, reaffirmed wanting them in C++26 46-4-8-1-9 and finally the C++26 DIS was approved 114 in favor, 12 opposed, and 3 abstaining.

How is that not clear and stable consensus?

Why should we pull them out just because the same dozen people keep spreading FUD? They're a minority and they have to accept it.

36

u/James20k P2005R0 Oct 24 '26

voted 9-4-5-8-41 against NB comments

Ignoring neutrals, 20% of the room being against contracts doesn't seem like particularly great consensus. Consensus isn't just a majority vote

They're a minority and they have to accept it.

The ISO process is specifically designed to prevent exactly this idea IMO

18

u/GabrielDosReis Oct 24 '26

Ignoring neutrals, 20% of the room being against contracts doesn't seem like particularly great consensus. Consensus isn't just a majority vote The ISO process is specifically designed to prevent exactly this idea IMO

Indeed. Furthermore, those NB comments were the feedback from the deciders (the NB whose consensus is sought for the ISO standards) to the working group. Dismissing them via numerical accounting in the WG could be predicted to create troubles down the road.

10

u/FrogNoPants Oct 24 '26 edited Oct 24 '26

14 out of 114 is 12% not 20%..

12 out of 126 is 9.5% not 20%

It actually looks like contracts got more popular, with the final opposition being 9.5%, I'd say they did have consensus.

15

u/foonathan Oct 24 '26

Consensus doesn't mean unanimity:

consensus: General agreement, characterized by the absence of sustained opposition to substantial issues by any important part of the concerned interests and by a process that involves seeking to take into account the views of all parties concerned and to reconcile any conflicting arguments.

NOTE Consensus need not imply unanimity.

And the ISO process is specifically designed so that after all minority concerns have been heard (which they have, repeatedly and exhaustively), the minority has to respect it:

Consensus is not a tyranny of the minority. The minority, once they have had opportunity to be heard, cannot just say “we still object so you can’t proceed” and refuse to accept the consensus of the majority to pursue a different direction. The ISO Code of Conduct requires the minority to ‘accept group decisions.’

https://isocpp.org/std/standing-documents/sd-4-wg21-practices-and-procedures#consensus

23

u/pkasting Valve Oct 25 '26

But by that same doc:

In rare cases, where the minority still believe that a serious error of judgment is being made, escalation can be appropriate in accord with the Escalation procedures covered later in this document; note that the key words are “rare” (not regular), “still” (it was raised before), and “serious.” The ISO Code of Conduct encourages ‘escalating disputes in a timely manner’ with an ‘agreed dispute resolution processes.’ Escalation can become inappropriate in two ways: (a) when a serious objection is not raised “in a timely manner,” such as being withheld until plenary session or formal ballot time rather than being raised consistently throughout the process starting as early as possible; or (b) when a participant or national body regularly uses the escalation process to express a pattern of strong disagreement on topic after topic, which erodes their credibility and is not the purpose of the escalation resolution process (like exception handling, escalation handling is for hard errors, and is not designed for expressing less serious conditions or for what should be ordinary control flow).

If the NB votes against are due to objections that have already been raised consistently (which you suggest is true), then the "in a timely manner" requirement has been satisfied. Given the rarity of a DIS being disapproved, the "rare" requirement seems to have been satisfied.

27

u/James20k P2005R0 Oct 24 '26

characterized by the absence of sustained opposition

This is the key though. The opposition to contracts has been very sustained and has presented a lot of arguments, which means that under this interpretation consensus was never really obtained. You could argue that eg a 51/49 vote means consensus is irrelevant once the issues have been heard and that the minority simply has to respect this, but the other stages of the process are clearly designed to prevent this outcome. I think importantly:

Consensus is not a tyranny of the majority. The majority cannot just say “we have enough votes” and refuse to listen to the concerns of the minority. The ISO Code of Conduct requires the majority to ‘ensure that the views of all are heard and understood.’

Some people would similarly argue that the concerns of the minority haven't been addressed

Here we have 40% of national bodies which have voted no though, which is clearly not tyranny of the minority IMO. C++26 barely achieved a majority vote of NBs. One of the biggest objections I've read - and please believe me when I say I have no idea if this is true or why people are saying it - is that the way that contracts has been advanced has made it difficult for people to object to it properly, so it may not be surprising that opposition has been organised at this stage to a feature that's less popular than the prior votes may show. I genuinely don't know though

If the contracts opposition was smaller, or not attempting to present technical arguments I'd agree with you, but a strong sustained 20% of the vote leading to a failure to make it through this step of the process isn't super surprising IMO, and seems like an expected outcome of the ISO process as a whole

5

u/foonathan Oct 24 '26

The opposition to contracts has been very sustained and has presented a lot of arguments

All of which were heard and voted against. What else should be done?

Some people would similarly argue that the concerns of the minority haven't been addressed

They have not been adressed because the consensus of the room is that those concerns aren't concerning.

If I say "I'm concerned because contracts don't end world hunger, therefore I'm voting against contracts", I shouldn't be surprised if no changes are made to address my concerns.

Here we have 40% of national bodies which have voted no though

That doesn't mean anything though. Some NBs have hundreds of members, some have less than 10. 40% of NBs doesn't mean "40% of experts", because ISO being an international thing gives all countries equal votes. The minority against contracts just happen to be geographically diverse.

If the contracts opposition was smaller, or not attempting to present technical arguments I'd agree with you, but a strong sustained 20% of the vote leading to a failure to make it through this step of the process isn't super surprising IMO, and seems like an expected outcome of the ISO process as a whole

It's not 20% though. In plenary 12 people voted against and ~12 voted against in EWG. Of course you'll get a higher percentage of against votes if 100% of the people against show up in one room while most people in favor aren't there.

And of course you'll have sustained opposition if you keep raising the same points over and over and over again, just to be shot down every single time.

14

u/Wenir Oct 24 '26

All of which were heard and voted against

NBs also heard them and voted appropriately, why do you prefer one kind of vote over another ? 

8

u/foonathan Oct 25 '26

In the committee votes, it is one person, one vote. At the NB level it is one country, one vote. If a vote at the committee level is 100-12, the vote passes. If the 12 people happen to be in 12 different countries while 100 are in one, the vote is now suddenly 1-12. So obviously I prefer the first kind of vote.

6

u/kronicum Oct 25 '26

My understanding is that ISO does not have votes at the working group level, only at national bofiee level. Is that not true?

3

u/AKostur Oct 25 '26

There exists polls at the working group level to answer questions such as "This proposal is good enough to advance from SG14 to LEWG" (to use arbitrary SG groups), and then another to "Advance from LEWG to LWG", and yet another to "advance from LWG to plenary", and then another at plenary (though I think this is more formal than a poll) to incorporate the paper into the draft Standard. Then there was another plenary to advance the draft Standard to DIS and be sent out to the NBs for a ballot. (Each paper may take certain other paths, depending on the content. Perhaps passing through multiple SGs.)

→ More replies

8

u/c0r3ntin Oct 24 '26

"sustained" just means having stamina, it says nothing of technical merits.

Coroutines, concepts, modules, reflection all had sustained oppositions.

16

u/James20k P2005R0 Oct 24 '26

One of the things that concerns me most personally is that with the benefit of hindsight, modules should never have been standardised in their current form. Coroutines also have a lot of problems and are very tricky to recommend in practice as well

I suspect part of the objections to Contracts is motivated by the fact that a lot of the big ticket C++ features we've gotten recently have turned out not to have landed in a particularly good state. The range library has also been very mixed

13

u/Minimonium Oct 24 '26

From what I see the most vocal opponents of Contracts were exactly the people who spearheaded the features you talk about here, never admitted to shortcomings, and further press on with the "profiles" amateurish nonsense.

I would maybe agree with people who would truly consider Coroutines, Ranges, and Modules a failure and decide to meaningfully improve the process. But to believe it's the motivation of the opposition is cognitive dissonance.

10

u/James20k P2005R0 Oct 26 '26

I would maybe agree with people who would truly consider Coroutines, Ranges, and Modules a failure

At least for me (and only me), I do personally strongly feel like these features are a failure in the sense that they could be a lot better. All of them make massive unforced mistakes - eg the syntax of ranges with hindsight should likely have been . vs |, because it massively reduces compile times. Coroutines appear to have made the wrong choice with heap allocations (and their high complexity), and modules are modules. <filesystem> is another mess which will never be fixed. The process of (not) getting basic fixes to <random> through was crazy

I do personally believe that the reason why they aren't better is that the C++ process itself prevents the best possible result, not because the people involved are lacking. The fact that C++ has no equivalent of Rust's nightly process, and that being put into a TS/whitepaper was seemingly seen as a death sentence for contracts, is crazy

decide to meaningfully improve the process

I've argued at length (well before the current debacle) that C++ needs to leave ISO and adopt a Rust style governance structure, so if anyone wants to make me BFDL of C++ I'll get right on fixing that 🙏

11

u/c0r3ntin Oct 25 '26

in addition to that - as you are completely right that it was different group of people objecting - and the people pushing for modules aggressively in wg21 were the same that ignored the tooling folks - the solution to the committee making mistake isn't to delegate the decision to groups of people with less expertise.

Modules were approved with an understanding that adoption would be painful. what was less understood at the time is that header units without mapping files were not really viable from an implementation standpoint and yet, that was added as an effort to increase consensus.

Any non trivial feature is going to have issues ( if only because all parts of the pipeline are resources constrained), and detractors.

And I don't want to say that WG21 gets things right, it often doesn't. I am just advising against the hope that different group makes better choices.

NB pressure got us wchar_t, digraphs, garbage collector.

→ More replies

7

u/aruisdante Oct 24 '26 edited Oct 24 '26

Yes, the current state of things seems to be quite literally the definition of tyranny of the minority. Not the DIS failing, that’s obvious lack of consensus, all the other votes along the way, and things like how the American NB wound up at “abstain.”

Sustained opposition isn’t repeating the same argument over and over and over till you wear down the opposition. It’s continuing to present new information on why it’s wrong, and continuing to propose new alternatives. Just stubbornly refusing to budge is being intransigent, and that’s how you get fractures in a community rather than compromises. I’ve already heard that some NBs are seriously considering forking C++ if 26 can’t seem to move forward as an ISO standard as they’ve lost so much faith in the process.

My colleague and I voted against contracts in Tokyo 2024 based on not having a way for the author of a contract to enforce they are actioned, always, and in safety critical that’s an important property to have. But there was clear an obvious consensus that that wasn’t enough of a problem to stop shipping, and so we haven’t voted against since there’s no new information presented that shows why that’s any more of a problem now than it was then. If people don’t accept “we don’t see things the same way as you, and we never will” as a possible outcome of consensus building, you will never ship anything. True consensus, where everyone agrees, can only be reached without destroying working relationships if time is unbounded.

→ More replies (1)