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.

290 Upvotes

399 comments sorted by

View all comments

Show parent comment

2

u/Minimonium Oct 25 '26

The build system can... just patch it?

2

u/James20k P2005R0 Oct 25 '26

If I write

#undef NDEBUG
#include <assert.h>

The build system can't patch that

1

u/Minimonium Oct 25 '26

Your example is actually the most trivial to hijack (just supplant the header), you could make a better example with undef just before the usage but it can be patched as well.

2

u/James20k P2005R0 Oct 25 '26

Sure, but you don't generally try to defend against a malicious compilation of your code though IMO

Edit:

Or at least, you shouldn't be surprised when doing this breaks something very badly

3

u/Minimonium Oct 25 '26

It is not necessary a malicious compilation - source patching, while undesirable, is extremely common in package management because some poorly maintained projects encode build-level configuration (like NDEBUG here) in their source or build script code effectively and unexpectedly breaking their downstream consumers.