3 ms·
> It took decades to get them to define arithmetic as twos-complement. I'm not sure this is right? IIRC C++20/C23 require two's complement representation for s
by aw1621107 2y ago
> It took decades to get them to define arithmetic as twos-complement.
I'm not sure this is right? IIRC C++20/C23 require two's complement representation for signed integers but generally leave other behaviors (including signed overflow) the same.
[0]: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0907r4.html https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p09...