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

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.

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?

→ 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

→ More replies (4)
→ More replies (1)
→ 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