3 ms·
Nope. There's no warning for bool->int conversion: https://stackoverflow.com/questions/28716391/gcc-forbid-implicit-bool-int-conversion https://stackoverflow.co
by edflsafoiewq 4y ago
Nope. There's no warning for bool->int conversion: https://stackoverflow.com/questions/28716391/gcc-forbid-implicit-bool-int-conversion https://stackoverflow.com/questions/28716391/gcc-forbid-impl...
- HarHarVeryFunny 4y agoSomewhat oddly even in C++, where bool is a distinct type, g++ doesn't have any warning for implicit bool to int conversion, although clang's clang-tidy "linter" tool does.