C++ Logo

std-proposals

Advanced search

Re: [std-proposals] D3666R0 Bit-precise integers

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Tue, 2 Sep 2025 20:38:57 +0200
Disallowing additions of (implicitly int-converted) bool values is a bad idea. A huge advantage of C++ is the long compatibility for low-level algorithms. They can just be inserted and compiled. bool a = true; bool b = true; bool c = false; if (a + b + c >= 2) ...; // test whether at least two booleans are true We should create the std::strong_bool instead or use some bool profile.

Received on 2025-09-02 18:50:12