3 ms·
> The value -1 is definitely true Except when being used as a comparison to any of the std utilities.
by shakna 7y ago
> The value -1 is definitely true
Except when being used as a comparison to any of the std utilities.
- syockit 7y agoAs far as I know, std library specifically uses the word "nonzero" in the documentation to denote non-false value. Therefore you should be using !, &&, || for any boolean ops, but never == nor !=