r/cpp • WG21 + CTRE + EWG 👸🏻 • Oct 23 '26

Pre-Búzios WG21 mailing

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/#mailing2026-10
55 Upvotes

200 comments sorted by

View all comments

Show parent comment

1

u/JVApen Clever is an insult, not a compliment. - T. Winters Oct 25 '26

I am interested in the "different libraries using assertions differently". Can you give some examples? Is your requirement to have those assertions disabled or to still have them though not handled by your handler?

2

u/interlockedxor Oct 25 '26 edited Oct 25 '26

In many cases, I require that assertions in various libraries do not run at all, even evaluating the condition, in order to maintain interactive framerates in debug (not everyone prioritizes debug build perf). Being able to disable assertions for a particular library with a macro is both pragmatic and also a widespread conventional practice that just works today.

1

u/JVApen Clever is an insult, not a compliment. - T. Winters Oct 25 '26

Sounds like you really want the labels or another way to exclude 3rd parties. I think both would be interesting. I guess the later would be most useful. For example -include-no-contracts instead of -include