3 ms·
The main change between [P0907r0] and the subsequent revision is to maintain undefined behavior when signed integer overflow occurs, instead of defining wrappin
by jwilk 8y ago
The main change between [P0907r0] and the subsequent revision is to maintain undefined behavior when signed integer overflow occurs, instead of defining wrapping behavior.
- slededit 8y agoAnd the joy I originally had is once again lost.
- deleted 8y ago[deleted]
- badsectoracula 8y agoGah, what is the point then?
- sanxiyn 8y agoThe point is that signed integers are two's complement. After all, it is the title.
- barrkel 8y agoNaive overflow checks are often done by adding two positive numbers together and checking if the result is negative. If wrapping is undefined, this no longer works, and the overflow check may be eliminated.