C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Don't get rid of <stdbool.h>

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Wed, 25 Nov 2026 10:18:23 +0100
Or we would have configure scripts that try to compile different variants of code to find out how to handle bool. -----Ursprüngliche Nachricht----- Von:David Brown via Std-Proposals <std-proposals_at_[hidden]> [...] Removing it from the C and/or C++ standards would mean that every piece of code that aims to be widely portable and that is intended to work with different standards (and for headers, work with both C and C++) now needs a block of preprocessor gunge to figure out if <stdbool.h> should be included or not. Or more likely, projects would make their own "proj_bool.h" header that contained that gunge once, and we are back to every project doing this in their own way, back to the very problem _Bool and <stdbool.h> solved in C99.[...]

Received on 2026-11-25 09:20:15