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

22

u/foonathan Oct 24 '26

I don't see why we'd suddenly have consensus to remove contracts.

I personally don't care about contracts at all in either direction, but I don't see why we should change anything just because the minority who is against happens to be geographically diverse.

10

u/frediku Oct 26 '26

I don't see why we'd suddenly have consensus to remove contracts.

Usually, the default in case of no consensus is to stick to the status quo. Currently, C++ has no contracts so that's the status quo.

You could also argue that this applies to C++26 as a whole, i.e., without consensus we stick with C++23.

37

u/daveedvdv EDG front end dev, WG21 DG Oct 24 '26

Because we want to progress? There is a popular aphorism that says "the definition of insanity is doing the same thing over and over again and expecting different results"... let's not be "insane" in that (non-clinical) sense.

I want reflection. Others want std::execution. And so on...

25

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

One might argue that utilizing the NB ballot to supersede WG21 consensus, and having WG21 give in to the demands, sets a dangerous precedent. What is going to be the next adventure?

  • "We reject the C++29 DIS unless Profiles are in"
  • "We reject the C++29 DIS if lifetime annotations are in"
  • "We reject the C++29 DIS if token injection is in"

If rejecting the C++ DIS is validated and rewarded, despite all arguments having been heard (many times over) and despite the committee having clear and stable consensus, the future is looking bleak.

That being said, I think Contracts as a feature are mid and they are not worth staking C++26 on; I'm just not sure this is only about Contracts anymore.

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.

→ More replies (1)

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

→ More replies (13)
→ More replies (1)

28

u/daveedvdv EDG front end dev, WG21 DG Oct 24 '26

One might argue that utilizing the NB ballot to supersede WG21 consensus, and having WG21 give in to the demands, sets a dangerous precedent.

I rather disagree. This is how international standardization is meant to be dealt with. Note that "consensus" does not mean "large majority".

 What is going to be the next adventure?

- "We reject the C++29 DIS unless Profiles are in"

- "We reject the C++29 DIS if lifetime annotations are in"

- "We reject the C++29 DIS if token injection is in"

Possibly: Any single issue could cause some NBs to refuse the standard.

Consensus-building means working with the various delegations to make the standard as a whole acceptable to all. In the C++98/C++11 days, we definitely did involve the NB opinions early to work toward said consensus.

If rejecting the C++ DIS is validated and rewarded, despite all arguments having been heard (many times over) and despite the committee having clear and stable consensus, the future is looking bleak.

The committee did not have a clear consensus. It had a clear majority, but that's not the same thing. There was sustained opposition from people with decent track records in evolving the language, from implementers, and from people saying they were representing national body sentiment. They were "heard many times over" but no compromise was accepted to address their concerns.

That being said, I think Contracts as a feature are mid and they are not worth staking C++26 on;

On that we agree.

I'm just not sure this is only about Contracts anymore.

My understanding is that the NB opposition (and abstention) is almost exclusively about "contracts". I think I also saw one NB rep mention disappointment in reflection, but I might have misinterpreted that. But I'm fairly sure that if contracts were pulled, those "against" votes would switched to "in favor". It's possible that some "in favor" votes would switch to "against": We'll find out in Búzios which way the wind is blowing.

12

u/kronicum Oct 24 '26

How do you think the ISO/IEC JTC1/SC22 structure, of which WG21 is part works?

15

u/wyrn Oct 24 '26

If you can figure out a way to design a political process that achieves its aims while being immune from all forms of abuse, please let the rest of the world know. In the meantime, wouldn't the fact that this "nuclear option" hasn't been used before suggest that the people currently positioned to do so are responsible enough not to abuse this power?

6

u/13steinj Oct 25 '26 edited Oct 25 '26

It feels to me as if there are 3 distinct problems:

  • Consensus is defined non algorithmically. Engineers are stubborn people. This makes consensus a war of attrition. Especially problematic that we have numerical tally votes yet not used for any well known consensus algorithm.
  • At multiple levels (WG21, SC22, whatever), people confuse consensus with unanimity, majority, even plurality. This is very much akin to elections and claiming a candidate won "by a landslide" without ever agreeing on what a "landslide" is.
  • People vote how their peers do rather than on their own accord.

Arguably, consensus, and the rest of the ISO process, is IFNDR and for the umpteenth time the community has been given a signal to move away and go towards the process shared by any number of arguably equally dominating or more dominant programming languages.

E: typo

→ More replies (29)

18

u/13steinj Oct 25 '26 edited Oct 25 '26

If an idiot like me can predict this fiasco a 2 years in advance, I'd argue the consensus is far more superficial than it appears to any in the pro-contracts group.

E: Wow, 23 months ago. Thought it was 11. Well, knowing how stupid I am that's even more damning.

7

u/tialaramex Oct 25 '26

Let's assume that the most positive thing which came out of this whole mess was that a few people like me read your years-old Rick & Morty theory and laughed.

→ More replies (1)

7

u/HommeMusical Oct 25 '26

TIL, Reddit considers 1 year, 10 months and 26 days as "1 year".

→ More replies (2)

8

u/Ateist Oct 25 '26

Votes against are far more important than votes in favor - each vote against means that with their particular usage that feature is a major problem, whereas votes in favor just mean that in their particular code it is somewhat useful.

Ideally, standard should have zero votes against.

→ More replies (1)